Attributes
- Companion
- class
- Source
- transactor.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Transactor.type
Members list
Grouped members
Constructors
Construct a Transactor
that wraps an existing Connection
. Closing the connection is the responsibility of the caller.
Construct a Transactor
that wraps an existing Connection
. Closing the connection is the responsibility of the caller.
Value parameters
- blocker
-
for blocking database operations
- connection
-
a raw JDBC
Connection
to wrap
Attributes
- Source
- transactor.scala
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)
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)
Value parameters
- logHandler
-
For logging events emitted by this Transactor
Attributes
- Source
- transactor.scala
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.
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.
Attributes
- Source
- transactor.scala
Lenses
Attributes
- Source
- transactor.scala
Attributes
- Source
- transactor.scala
Attributes
- Source
- transactor.scala
Attributes
- Source
- transactor.scala
Attributes
- Source
- transactor.scala
Attributes
- Source
- transactor.scala
Attributes
- Source
- transactor.scala
Attributes
- Source
- transactor.scala
Type members
Classlikes
Attributes
- Source
- transactor.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Source
- transactor.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Source
- transactor.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Types
Attributes
- Source
- transactor.scala
Value members
Concrete methods
Attributes
- Source
- transactor.scala