Packages

  • package root
    Definition Classes
    root
  • package doobie

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core.

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core. A typical starting set of imports would be something like this.

    import cats.implicits._
    import doobie._, doobie.implicits._
    Definition Classes
    root
    See also

    The doobie microsite for much more information.

  • package util

    Collection of modules for typeclasses and other helpful bits.

    Collection of modules for typeclasses and other helpful bits.

    Definition Classes
    doobie
  • object transactor
    Definition Classes
    util
  • Strategy
  • Transactor

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 program 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])

    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 program to run in all cases (finally)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val after: free.connection.ConnectionIO[Unit]
  5. val always: free.connection.ConnectionIO[Unit]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val before: free.connection.ConnectionIO[Unit]
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. val oops: free.connection.ConnectionIO[Unit]
  17. val resource: Resource[free.connection.ConnectionIO, Unit]
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped