harness.sql.Atomically$
See theAtomically companion trait
object Atomically
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass 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
object IgnoreAtomicity
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
IgnoreAtomicity.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 Serializabletrait Producttrait Equalstrait WithConnection[E]trait Atomically[E]class Objecttrait Matchableclass AnyShow all
object Live
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 Serializabletrait Producttrait Equalstrait WithConnection[E]trait Atomically[E]class Objecttrait Matchableclass AnyShow all
object LiveRollback
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
LiveRollback.type
sealed trait WithConnection[E] extends Atomically[E]
Attributes
- Supertypes
- Known subtypes
-
class Live[E]class LiveRollback[E]
Value members
Concrete methods
def atomically[R, E, A](effect: ZIO[R, E, A])(using evidence$2: Tag[E]): ZIO[Atomically[E] & R, E, A]
In this article