Packages

  • package root
    Definition Classes
    root
  • package doobie
    Definition Classes
    root
  • 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

    Module defining Transactor, which abstracts over connection providers and gives natural transformations ConnectionIO ~> M and Process[ConnectionIO, ?] ~> Process[M, ?] for target monad M.

    Module defining Transactor, which abstracts over connection providers and gives natural transformations ConnectionIO ~> M and Process[ConnectionIO, ?] ~> Process[M, ?] for target monad M. By default the resulting computation will be executed on a new connection with autoCommit off; will be committed on normal completionand rolled back if an exception escapes; and in all cases the connection will be released properly.

    This module also provides default implementations backed by DriverManager and DataSouce.

    Definition Classes
    util
  • DataSourceTransactor
  • DriverManagerTransactor
  • Transactor

abstract class Transactor[M[_]] extends AnyRef

Source
transactor.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Transactor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Transactor()(implicit arg0: Monad[M], arg1: Catchable[M], arg2: Capture[M])

Abstract Value Members

  1. abstract def connect: M[Connection]

    Minimal implementation must provide a connection.

    Minimal implementation must provide a connection.

    Attributes
    protected[doobie]

Concrete 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. def after: ConnectionIO[Unit]

    Action in case of success; default is commit.

    Action in case of success; default is commit.

    Attributes
    protected[doobie]
  5. def always: ConnectionIO[Unit]

    Cleanup action run in all cases; default is close.

    Cleanup action run in all cases; default is close.

    Attributes
    protected[doobie]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def before: ConnectionIO[Unit]

    Action preparing the connection; default is setAutoCommit(false).

    Action preparing the connection; default is setAutoCommit(false).

    Attributes
    protected[doobie]
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  18. def oops: ConnectionIO[Unit]

    Action in case of failure; default is rollback.

    Action in case of failure; default is rollback.

    Attributes
    protected[doobie]
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. lazy val yolo: Yolo[M]

    Unethical syntax for use in the REPL.

  25. object trans extends ~>[ConnectionIO, M]

    Natural transformation to target monad M.

  26. object transP extends ~>[[a]Process[[A]Free[ConnectionOp, A], a], [a]Process[M, a]]

    Natural transformation to an equivalent process over target monad M.

Deprecated Value Members

  1. def transact[A](pa: Process[ConnectionIO, A]): Process[M, A]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.1) will go away in 0.2.2; use transP

  2. def transact[A](ma: ConnectionIO[A]): M[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.1) will go away in 0.2.2; use trans

Inherited from AnyRef

Inherited from Any

Ungrouped