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.
Attributes
- 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)
- Companion:
- object
- Source:
- transactor.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any