Strategy

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val resource: Resource[ConnectionIO, Unit]

Attributes

Source:
transactor.scala