package db
Contains the JDBC database access API.
Example, retrieving a connection from the 'customers' datasource:
val conn = db.getConnection("customers")
- Alphabetic
- By Inheritance
- db
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait ConnectionPool extends AnyRef
Connection pool API for managing data sources.
- class DBApiProvider extends Provider[DBApi]
Inject provider for DB implementation of DB API.
Inject provider for DB implementation of DB API.
- Annotations
- @Singleton()
- trait DBComponents extends AnyRef
DB components (for compile-time injection).
- final class DBModule extends SimpleModule
DB runtime inject module.
- case class DatabaseConfig(driver: Option[String], url: Option[String], username: Option[String], password: Option[String], jndiName: Option[String]) extends Product with Serializable
The generic database configuration.
The generic database configuration.
- driver
The driver
- url
The jdbc URL
- username
The username
- password
The password
- jndiName
The JNDI name
- class DefaultDBApi extends DBApi
Default implementation of the DB API.
- abstract class DefaultDatabase extends Database
Default implementation of the database API.
Default implementation of the database API. Provides driver registration and connection methods.
- trait HikariCPComponents extends AnyRef
HikariCP components (for compile-time injection).
- class HikariCPConnectionPool extends ConnectionPool
- Annotations
- @Singleton()
- class HikariCPModule extends SimpleModule
HikariCP runtime inject module.
- type NamedDatabase = db.NamedDatabase
- class NamedDatabaseProvider extends Provider[Database]
Inject provider for named databases.
- class PooledDatabase extends DefaultDatabase
Default implementation of the database API using a connection pool.
Value Members
- object ConnectionPool
- object DatabaseConfig extends Serializable
- object Databases
Creation helpers for manually instantiating databases.
- object DefaultDBApi
- object HikariCPConnectionPool