Db

object Db
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any
Db.type

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def fromCfg(cfg: DbConfig): IO[Db]

When using docker-compose, sometimes the DB image needs more time to initialise. This adds a small retry.

When using docker-compose, sometimes the DB image needs more time to initialise. This adds a small retry.

def generic(cfg: DbConfig, dsMain: DataSource, dsMigration: DataSource, connectEC: Resource[IO, ExecutionContext], transactor: ExecutionContext => Transactor[IO]): IO[Db]
def hikari(cfg: DbConfig, dsMain: HikariDataSource, dsMigration: DataSource, connectEC: Resource[IO, ExecutionContext]): IO[Db]