object Transactor
- Source
- transactor.scala
- Grouped
- Alphabetic
- By Inheritance
- Transactor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type Aux[M[_], A0] = Transactor[M] { type A = A0 }
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def connect[M[_], A]: Lens[Aux[M, A], (A) ⇒ Resource[M, Connection]]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromConnection[M[_]](connection: Connection, transactEC: ExecutionContext)(implicit arg0: Async[M], arg1: ContextShift[M]): Aux[M, Connection]
Construct a
Transactor
that wraps an existingConnection
.Construct a
Transactor
that wraps an existingConnection
. Closing the connection is the responsibility of the caller.- connection
a raw JDBC
Connection
to wrap- transactEC
an
ExecutionContext
for blocking database operations
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @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(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
object
fromDataSource
Construct a constructor of
Transactor[M, D]
for someD <: DataSource
by partial application ofM
, which cannot be inferred in general.Construct a constructor of
Transactor[M, D]
for someD <: DataSource
by partial application ofM
, which cannot be inferred in general. This follows the pattern described [here](http://tpolecat.github.io/2015/07/30/infer.html). -
object
fromDriverManager
Module of constructors for
Transactor
that use the JDBCDriverManager
to allocate connections.Module of constructors for
Transactor
that use the JDBCDriverManager
to allocate connections. Note thatDriverManager
is unbounded and will happily allocate new connections until server resources are exhausted. It is usually preferable to useDataSourceTransactor
with an underlying bounded connection pool (as withH2Transactor
andHikariTransactor
for instance). Blocking operations onDriverManagerTransactor
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()