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
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 }
  2. class FromConnectionUnapplied[M[_]] extends AnyRef
  3. class FromDataSourceUnapplied[M[_]] extends AnyRef
  4. 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( ... ) @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[_]]: FromConnectionUnapplied[M]

    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.

  14. def fromDataSource[M[_]]: FromDataSourceUnapplied[M]

    Construct a constructor of Transactor[M, D] for some D <: DataSource When calling this constructor you should explicitly supply the effect type M e.g.

    Construct a constructor of Transactor[M, D] for some D <: DataSource When calling this constructor you should explicitly supply the effect type M e.g. Transactor.fromDataSource[IO](myDataSource, connectEC)

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

    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.

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

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

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

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

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

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