doobie.util.transactor$.Strategy
See theStrategy companion object
final case class Strategy(before: ConnectionIO[Unit], after: ConnectionIO[Unit], oops: ConnectionIO[Unit], always: ConnectionIO[Unit])
Data type representing the common setup, error-handling, and cleanup strategy associated with an SQL transaction. A Transactor
uses a Strategy
to wrap programs prior to execution.
Value parameters
- after
-
a program to run on success
- always
-
a program to run in all cases (finally)
- before
-
a program to prepare the connection for use
- oops
-
a program to run on failure (catch)
Attributes
- Companion
- object
- Source
- transactor.scala
- Graph
-
- Supertypes
Members list
In this article