Class/Object

doobie.util.transactor

Strategy

Related Docs: object Strategy | package transactor

Permalink

final case class Strategy(before: free.connection.ConnectionIO[Unit], after: free.connection.ConnectionIO[Unit], oops: free.connection.ConnectionIO[Unit], always: free.connection.ConnectionIO[Unit]) extends Product with Serializable

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.

before

a program to prepare the connection for use

after

a program to run on success

oops

a program to run on failure (catch)

always

a programe to run in all cases (finally)

Source
transactor.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Strategy
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Strategy(before: free.connection.ConnectionIO[Unit], after: free.connection.ConnectionIO[Unit], oops: free.connection.ConnectionIO[Unit], always: free.connection.ConnectionIO[Unit])

    Permalink

    before

    a program to prepare the connection for use

    after

    a program to run on success

    oops

    a program to run on failure (catch)

    always

    a programe to run in all cases (finally)

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val after: free.connection.ConnectionIO[Unit]

    Permalink

    a program to run on success

  5. val always: free.connection.ConnectionIO[Unit]

    Permalink

    a programe to run in all cases (finally)

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val before: free.connection.ConnectionIO[Unit]

    Permalink

    a program to prepare the connection for use

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. val oops: free.connection.ConnectionIO[Unit]

    Permalink

    a program to run on failure (catch)

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. val wrap: ~>[free.connection.ConnectionIO, free.connection.ConnectionIO]

    Permalink

    Natural transformation that wraps a ConnectionIO program.

  22. def wrapK[M[_]](interp: Interpreter[M])(implicit arg0: MonadError[M, Throwable]): ~>[[γ$6$]Kleisli[M, Connection, γ$6$], [γ$7$]Kleisli[M, Connection, γ$7$]]

    Permalink

    Natural transformation that wraps a Kleisli program, using the provided interpreter to interpret the before/after/oops/always strategy.

  23. val wrapP: ~>[[β$2$]Stream[[A]Free[ConnectionOp, A], β$2$], [β$3$]Stream[[A]Free[ConnectionOp, A], β$3$]]

    Permalink

    Natural transformation that wraps a ConnectionIO stream.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped