HikariTransactor

doobie.hikari.HikariTransactor

Attributes

Source
HikariTransactor.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[M[_]](hikariDataSource: HikariDataSource, connectEC: ExecutionContext)(using evidence$1: Async[M]): HikariTransactor[M]

Construct a HikariTransactor from an existing HikariDatasource.

Construct a HikariTransactor from an existing HikariDatasource.

Attributes

Source
HikariTransactor.scala
def fromConfig[M[_]](config: Config, dataSource: Option[DataSource], dataSourceProperties: Option[Properties], healthCheckProperties: Option[Properties], healthCheckRegistry: Option[Object], metricRegistry: Option[Object], metricsTrackerFactory: Option[MetricsTrackerFactory], scheduledExecutor: Option[ScheduledExecutorService], threadFactory: Option[ThreadFactory])(using evidence$4: Async[M]): Resource[M, HikariTransactor[M]]

Resource yielding a new HikariTransactor configured with the given Config. The connectEC is created automatically, with the same size as the Hikari pool.

Resource yielding a new HikariTransactor configured with the given Config. The connectEC is created automatically, with the same size as the Hikari pool.

Attributes

Source
HikariTransactor.scala
def fromConfigCustomEc[M[_]](config: Config, connectEC: ExecutionContext, dataSource: Option[DataSource], dataSourceProperties: Option[Properties], healthCheckProperties: Option[Properties], healthCheckRegistry: Option[Object], metricRegistry: Option[Object], metricsTrackerFactory: Option[MetricsTrackerFactory], scheduledExecutor: Option[ScheduledExecutorService], threadFactory: Option[ThreadFactory])(using evidence$3: Async[M]): Resource[M, HikariTransactor[M]]

Resource yielding a new HikariTransactor configured with the given Config. Unless you have a good reason, consider using fromConfig which creates the connectEC for you.

Resource yielding a new HikariTransactor configured with the given Config. Unless you have a good reason, consider using fromConfig which creates the connectEC for you.

Attributes

Source
HikariTransactor.scala
def fromHikariConfig[M[_]](hikariConfig: HikariConfig, connectEC: ExecutionContext)(using evidence$5: Async[M]): Resource[M, HikariTransactor[M]]

Resource yielding a new HikariTransactor configured with the given HikariConfig. Unless you have a good reason, consider using the overload without explicit connectEC, it will be created automatically for you.

Resource yielding a new HikariTransactor configured with the given HikariConfig. Unless you have a good reason, consider using the overload without explicit connectEC, it will be created automatically for you.

Attributes

Source
HikariTransactor.scala
def fromHikariConfig[M[_]](hikariConfig: HikariConfig)(using evidence$6: Async[M]): Resource[M, HikariTransactor[M]]

Resource yielding a new HikariTransactor configured with the given HikariConfig. The connectEC is created automatically, with the same size as the Hikari pool.

Resource yielding a new HikariTransactor configured with the given HikariConfig. The connectEC is created automatically, with the same size as the Hikari pool.

Attributes

Source
HikariTransactor.scala
def initial[M[_]](connectEC: ExecutionContext)(using evidence$2: Async[M]): Resource[M, HikariTransactor[M]]

Resource yielding an unconfigured HikariTransactor.

Resource yielding an unconfigured HikariTransactor.

Attributes

Source
HikariTransactor.scala
def newHikariTransactor[M[_]](driverClassName: String, url: String, user: String, pass: String, connectEC: ExecutionContext)(using evidence$7: Async[M]): Resource[M, HikariTransactor[M]]

Resource yielding a new HikariTransactor configured with the given info. Consider using fromConfig for better configurability.

Resource yielding a new HikariTransactor configured with the given info. Consider using fromConfig for better configurability.

Attributes

Source
HikariTransactor.scala