transactor

doobie.util.transactor$
object transactor

Attributes

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

Members list

Concise view

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.

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
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.

Attributes

M

a target effect type; typically IO

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

Type members

Classlikes

object Strategy

Attributes

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

Attributes

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