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

object Transactor

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

Type Members

  1. type Aux[M[_], A0] = Transactor[M] { type A = A0 }

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[M[_]]: Lens[Transactor[M], free.connection.ConnectionIO[Unit]]

  5. def always[M[_]]: Lens[Transactor[M], free.connection.ConnectionIO[Unit]]

  6. def apply[M[_], A0](kernel0: A0, connect0: (A0) ⇒ Resource[M, Connection], interpret0: Interpreter[M], strategy0: Strategy): Aux[M, A0]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def before[M[_]]: Lens[Transactor[M], free.connection.ConnectionIO[Unit]]

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  10. def connect[M[_], A]: Lens[Aux[M, A], (A) ⇒ Resource[M, Connection]]

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def fromConnection[M[_]](connection: Connection, blocker: Blocker)(implicit arg0: Async[M], arg1: ContextShift[M]): Aux[M, Connection]

    Construct a Transactor that wraps an existing Connection.

    Construct a Transactor that wraps an existing Connection. Closing the connection is the responsibility of the caller.

    connection

    a raw JDBC Connection to wrap

    blocker

    for blocking database operations

  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def interpret[M[_]]: Lens[Transactor[M], Interpreter[M]]

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def kernel[M[_], A]: Lens[Aux[M, A], A]

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def oops[M[_]]: Lens[Transactor[M], free.connection.ConnectionIO[Unit]]

  23. def strategy[M[_]]: Lens[Transactor[M], Strategy]

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. object fromDataSource

    Construct a constructor of Transactor[M, D] for some D <: DataSource by partial application of M, which cannot be inferred in general.

    Construct a constructor of Transactor[M, D] for some D <: DataSource by partial application of M, which cannot be inferred in general. This follows the pattern described [here](http://tpolecat.github.io/2015/07/30/infer.html).

  30. object fromDriverManager

    Module of constructors for Transactor that use the JDBC DriverManager to allocate connections.

    Module of constructors for Transactor that use the JDBC DriverManager to allocate connections. Note that DriverManager is unbounded and will happily allocate new connections until server resources are exhausted. It is usually preferable to use DataSourceTransactor with an underlying bounded connection pool (as with H2Transactor and HikariTransactor for instance). Blocking operations on DriverManagerTransactor are executed on an unbounded cached daemon thread pool by default, so you are also at risk of exhausting system threads. TL;DR this is fine for console apps but don't use it for a web application.

    Annotations
    @SuppressWarnings()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Constructors

Lenses

Ungrouped