package db
Contains the JDBC database access API.
Example, retrieving a connection from the 'customers' datasource:
val conn = db.getConnection("customers")
- Source
- package.scala
- Alphabetic
- By Inheritance
- db
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
ConnectionPool extends AnyRef
Connection pool API for managing data sources.
-
trait
DBApi extends AnyRef
DB API for managing application databases.
-
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.
-
trait
Database extends AnyRef
Database API.
-
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.
-
sealed abstract
class
TransactionIsolationLevel extends AnyRef
Defines isolation levels that determines the degree to which one transaction must be isolated from resource or data modifications made by other operations.
Defines isolation levels that determines the degree to which one transaction must be isolated from resource or data modifications made by other operations.
- See also
Connection.
Value Members
- object ConnectionPool
- object DatabaseConfig extends Serializable
-
object
Databases
Creation helpers for manually instantiating databases.
- object DefaultDBApi
- object HikariCPConnectionPool
- object TransactionIsolationLevel