transactor

doobie.util.transactor$
object transactor

Attributes

Source
transactor.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
transactor.type

Members list

Grouped members

Type Aliases

type Interpreter[M[_]] = FunctionK[ConnectionOp, [_] =>> Kleisli[M, Connection, _$2]]

Attributes

Source
transactor.scala

Data Types

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.

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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed abstract class Transactor[M[_]]

A thin wrapper around a source of database connections, an interpreter, and a strategy for running programs, parameterized over a target monad M and an arbitrary wrapped value A. Given a stream or program in ConnectionIO or a program in Kleisli, a Transactor can discharge the doobie machinery and yield an effectful stream or program in M.

A thin wrapper around a source of database connections, an interpreter, and a strategy for running programs, parameterized over a target monad M and an arbitrary wrapped value A. Given a stream or program in ConnectionIO or a program in Kleisli, a Transactor can discharge the doobie machinery and yield an effectful stream or program in M.

Type parameters

M

a target effect type; typically IO

Attributes

Companion
object
Source
transactor.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Type members

Classlikes

object Strategy

Attributes

Companion
class
Source
transactor.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Strategy.type
object Transactor

Attributes

Companion
class
Source
transactor.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Transactor.type