DriverProvider

jdbc.connector.ConnectionProvider.DriverProvider
class DriverProvider[F[_]](implicit evidence$1: Console[F], ev: Async[F])

Attributes

Source
ConnectionProvider.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(driver: String, url: String, logHandler: Option[LogHandler[F]]): ConnectionProvider[F]

Construct a new Provider that uses the JDBC DriverManager to allocate connections.

Construct a new Provider that uses the JDBC DriverManager to allocate connections.

Value parameters

driver

the class name of the JDBC driver, like "com.mysql.cj.jdbc.MySQLDriver"

logHandler

Handler for outputting logs of process execution using connections.

url

a connection URL, specific to your driver

Attributes

Source
ConnectionProvider.scala
def apply(driver: String, url: String, user: String, password: String, logHandler: Option[LogHandler[F]]): ConnectionProvider[F]

Construct a new Provider that uses the JDBC DriverManager to allocate connections.

Construct a new Provider that uses the JDBC DriverManager to allocate connections.

Value parameters

driver

the class name of the JDBC driver, like "com.mysql.cj.jdbc.MySQLDriver"

logHandler

Handler for outputting logs of process execution using connections.

password

database password

url

a connection URL, specific to your driver

user

database username

Attributes

Source
ConnectionProvider.scala
def apply(driver: String, url: String, info: Properties, logHandler: Option[LogHandler[F]]): ConnectionProvider[F]

Construct a new Provider that uses the JDBC DriverManager to allocate connections.

Construct a new Provider that uses the JDBC DriverManager to allocate connections.

Value parameters

driver

the class name of the JDBC driver, like "com.mysql.cj.jdbc.MySQLDriver"

info

a Properties containing connection information (see DriverManager.getConnection)

logHandler

Handler for outputting logs of process execution using connections.

url

a connection URL, specific to your driver

Attributes

Source
ConnectionProvider.scala