object Transactor
- Source
- transactor.scala
- Grouped
- Alphabetic
- By Inheritance
- Transactor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Aux[M[_], A0] = Transactor[M] { type A = A0 }
- class FromConnectionUnapplied[M[_]] extends AnyRef
- class FromDriverManagerUnapplied[M[_]] extends AnyRef
- Annotations
- @SuppressWarnings()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def after[M[_]]: Lens[Transactor[M], free.connection.ConnectionIO[Unit]]
- def always[M[_]]: Lens[Transactor[M], free.connection.ConnectionIO[Unit]]
- def apply[M[_], A0](kernel0: A0, connect0: (A0) => Resource[M, Connection], interpret0: Interpreter[M], strategy0: Strategy): Aux[M, A0]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def before[M[_]]: Lens[Transactor[M], free.connection.ConnectionIO[Unit]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def connect[M[_], A]: Lens[Aux[M, A], (A) => Resource[M, Connection]]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- 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
andHikariTransactor
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. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def interpret[M[_]]: Lens[Transactor[M], Interpreter[M]]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kernel[M[_], A]: Lens[Aux[M, A], A]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def oops[M[_]]: Lens[Transactor[M], free.connection.ConnectionIO[Unit]]
- def strategy[M[_]]: Lens[Transactor[M], Strategy]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object fromDataSource
Construct a constructor of
Transactor[M, D]
for someD <: DataSource
by partial application ofM
, which cannot be inferred in general.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)