harness.sql.query.Transaction$
See theTransaction companion trait
object Transaction
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Transaction.type
Members list
Type members
Classlikes
final class Live[E](con: JDBCConnection)(implicit errorMapper: ErrorMapper[QueryError, E]) extends Transaction[E]
Attributes
- Supertypes
final class RollbackLayer[E](con: JDBCConnection)(implicit errorMapper: ErrorMapper[QueryError, E]) extends Transaction[E]
Attributes
- Supertypes
object Savepoint
final class Transactionless[E] extends Transaction[E]
Attributes
- Supertypes
final class UseSavepointForTransaction[E](con: JDBCConnection)(implicit errorMapper: ErrorMapper[QueryError, E]) extends Transaction[E]
Attributes
- Supertypes
Value members
Concrete methods
def inSavepoint[R <: Logger & Telemetry, E, A](effect: ZIO[R, E, A])(using evidence$2: Tag[E]): ZIO[Transaction[E] & R, E, A]
def inTransaction[R <: Logger & Telemetry, E, A](effect: ZIO[R, E, A])(using evidence$1: Tag[E]): ZIO[Transaction[E] & R, E, A]
def liveLayer[E](using evidence$3: Tag[E], errorMapper: ErrorMapper[QueryError, E]): URLayer[JDBCConnection, Transaction[E]]
def rollbackLayer[E](using evidence$5: Tag[E], errorMapper: ErrorMapper[QueryError, E]): URLayer[JDBCConnection, Transaction[E]]
def savepointLayer[E](using evidence$4: Tag[E], errorMapper: ErrorMapper[QueryError, E]): URLayer[JDBCConnection, Transaction[E]]
In this article