object fromDriverManager
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.
- Annotations
- @SuppressWarnings()
- Source
- transactor.scala
- Alphabetic
- By Inheritance
- fromDriverManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
apply[M[_]](driver: String, url: String, info: Properties)(implicit arg0: Async[M], arg1: ContextShift[M]): Aux[M, Unit]
Construct a new
Transactor
that uses the JDBCDriverManager
to allocate connections.Construct a new
Transactor
that uses the JDBCDriverManager
to allocate connections.- driver
the class name of the JDBC driver, like "org.h2.Driver"
- url
a connection URL, specific to your driver
- info
a
Properties
containing connection information (seeDriverManager.getConnection
)
-
def
apply[M[_]](driver: String, url: String, info: Properties, blocker: Blocker)(implicit arg0: Async[M], arg1: ContextShift[M]): Aux[M, Unit]
Construct a new
Transactor
that uses the JDBCDriverManager
to allocate connections.Construct a new
Transactor
that uses the JDBCDriverManager
to allocate connections.- driver
the class name of the JDBC driver, like "org.h2.Driver"
- url
a connection URL, specific to your driver
- info
a
Properties
containing connection information (seeDriverManager.getConnection
)
-
def
apply[M[_]](driver: String, url: String, user: String, pass: String)(implicit arg0: Async[M], arg1: ContextShift[M]): Aux[M, Unit]
Construct a new
Transactor
that uses the JDBCDriverManager
to allocate connections.Construct a new
Transactor
that uses the JDBCDriverManager
to allocate connections.- driver
the class name of the JDBC driver, like "org.h2.Driver"
- url
a connection URL, specific to your driver
- user
database username
- pass
database password
- def apply[M[_]](driver: String, url: String, user: String, pass: String, blocker: Blocker)(implicit arg0: Async[M], arg1: ContextShift[M]): Aux[M, Unit]
-
def
apply[M[_]](driver: String, url: String)(implicit arg0: Async[M], arg1: ContextShift[M]): Aux[M, Unit]
Construct a new
Transactor
that uses the JDBCDriverManager
to allocate connections.Construct a new
Transactor
that uses the JDBCDriverManager
to allocate connections.- driver
the class name of the JDBC driver, like "org.h2.Driver"
- url
a connection URL, specific to your driver
- def apply[M[_]](driver: String, url: String, blocker: Blocker)(implicit arg0: Async[M], arg1: ContextShift[M]): Aux[M, Unit]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
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
- @throws( ... ) @native()