package utils
A set of basic utilities useful to write workflows.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- utils
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
transactor(config: DatabaseConfig): Resource[IO, HikariTransactor[IO]]
Get a doobie transactor
Get a doobie transactor
- config
Database configuration
-
def
updateSchema(table: String, schemaEvolutions: List[doobie.ConnectionIO[_]]): Free[ConnectionOp, Unit]
Executes unapplied schema evolutions
Executes unapplied schema evolutions
- table
Name of the table that keeps track of applied schema changes
- schemaEvolutions
List of schema evolutions (should be append-only)
-
object
Timeout
Creates a Future that resolve automatically after the given duration.