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

Type Members

  1. type Aux[M[_], A0] = Transactor[M] { type A = A0 }
  2. class FromConnectionUnapplied[M[_]] extends AnyRef
  3. class FromDriverManagerUnapplied[M[_]] extends AnyRef
    Annotations
    @SuppressWarnings()

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(classOf[java.lang.CloneNotSupportedException]) @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: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def fromConnection[M[_]]: FromConnectionUnapplied[M]

    Construct a Transactor that wraps an existing java.sql.Connection.

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

  14. def fromDriverManager[M[_]]: FromDriverManagerUnapplied[M]

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

    Module of constructors for Transactor that use the JDBC java.sql.DriverManager to allocate connections. Note that java.sql.DriverManager is unbounded and will happily allocate new connections until server resources are exhausted. It is usually preferable to use a Transactor backed by a javax.sql.DataSource with an underlying bounded connection pool (as with H2Transactor and HikariTransactor for instance). Blocking operations 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.

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

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

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

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

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. object fromDataSource

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

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Constructors

Lenses

Ungrouped