Atomically

harness.sql.Atomically$
See theAtomically companion trait
object Atomically

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Atomically.type

Members list

Type members

Classlikes

final class IgnoreAtomicity[E] extends Atomically[E]

Will ignore the fact you are trying to do something atomically, and execute the effect as-is.

Will ignore the fact you are trying to do something atomically, and execute the effect as-is.

Attributes

Companion
object
Supertypes
trait Atomically[E]
class Object
trait Matchable
class Any

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Live[E](con: Database, mapError: ErrorMapper[QueryError, E]) extends WithConnection[E]

Uses a live connection. If the given effect passes, it will be committed. If the given effect fails, it will be rolled back.

Uses a live connection. If the given effect passes, it will be committed. If the given effect fails, it will be rolled back.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait WithConnection[E]
trait Atomically[E]
class Object
trait Matchable
class Any
Show all
object Live

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Live.type
final case class LiveRollback[E](con: Database, mapError: ErrorMapper[QueryError, E]) extends WithConnection[E]

Uses a live connection. Whether or not the effect passes, rollback will occur.

Uses a live connection. Whether or not the effect passes, rollback will occur.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait WithConnection[E]
trait Atomically[E]
class Object
trait Matchable
class Any
Show all
object LiveRollback

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait WithConnection[E] extends Atomically[E]

Attributes

Supertypes
trait Atomically[E]
class Object
trait Matchable
class Any
Known subtypes
class Live[E]
class LiveRollback[E]

Value members

Concrete methods

def atomicScope[E](using evidence$1: Tag[E]): ZIO[Atomically[E] & Scope, E, Unit]
def atomically[R, E, A](effect: ZIO[R, E, A])(using evidence$2: Tag[E]): ZIO[Atomically[E] & R, E, A]