package db
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- db
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
final
case class
ConnectionInfo(driverClassName: slamdata.Predef.String, url: slamdata.Predef.String, userName: slamdata.Predef.String, password: slamdata.Predef.String) extends Product with Serializable
Connection parameters for JDBC.
- sealed trait DbConnectionConfig extends AnyRef
- sealed class NotFound extends AnyRef
- type NotFoundErrT[F[_], A] = EitherT[F, NotFound, A]
-
final
case class
Schema[A](readVersion: ConnectionIO[slamdata.Predef.Option[A]], writeVersion: (A) ⇒ ConnectionIO[slamdata.Predef.Unit], updates: SortedMap[A, ConnectionIO[slamdata.Predef.Unit]])(implicit evidence$1: Order[A]) extends Product with Serializable
- updates
a sequence of update operations which can be applied in sequence to bring the schema from any previous version up to the latest version, migrating existing data in the process.
- final case class StatefulTransactor(transactor: Transactor[Task], shutdown: Task[slamdata.Predef.Unit]) extends Product with Serializable
Value Members
- val DefaultConfig: (HikariConfig) ⇒ Task[slamdata.Predef.Unit]
- val NotFound: NotFound
- def connFail[A](message: slamdata.Predef.String): ConnectionIO[A]
-
def
poolingTransactor(cxn: ConnectionInfo, config: (HikariConfig) ⇒ Task[slamdata.Predef.Unit]): EitherT[Task, UnknownError, StatefulTransactor]
Transactor that makes use of a connection pool for performance.
Transactor that makes use of a connection pool for performance. Requires cleanup.
-
def
simpleTransactor(cxn: ConnectionInfo): Transactor[Task]
Transactor that does not use a connection pool, so doesn't require any cleanup.
- object DbConnectionConfig