package db

Contains the JDBC database access API.

Example, retrieving a connection from the 'customers' datasource:

val conn = db.getConnection("customers")
Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. db
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package evolutions
  2. package slick

Type Members

  1. trait ConnectionPool extends AnyRef

    Connection pool API for managing data sources.

  2. trait DBApi extends AnyRef

    DB API for managing application databases.

  3. class DBApiProvider extends Provider[DBApi]

    Inject provider for DB implementation of DB API.

    Inject provider for DB implementation of DB API.

    Annotations
    @Singleton()
  4. trait DBComponents extends AnyRef

    DB components (for compile-time injection).

  5. final class DBModule extends SimpleModule

    DB runtime inject module.

  6. trait Database extends AnyRef

    Database API.

  7. 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

  8. class DefaultDBApi extends DBApi

    Default implementation of the DB API.

  9. abstract class DefaultDatabase extends Database

    Default implementation of the database API.

    Default implementation of the database API. Provides driver registration and connection methods.

  10. trait HikariCPComponents extends AnyRef

    HikariCP components (for compile-time injection).

  11. class HikariCPConnectionPool extends ConnectionPool
    Annotations
    @Singleton()
  12. class HikariCPModule extends SimpleModule

    HikariCP runtime inject module.

  13. type NamedDatabase = db.NamedDatabase
  14. class NamedDatabaseProvider extends Provider[Database]

    Inject provider for named databases.

  15. class PooledDatabase extends DefaultDatabase

    Default implementation of the database API using a connection pool.

  16. 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

  1. object ConnectionPool
  2. object DatabaseConfig extends Serializable
  3. object Databases

    Creation helpers for manually instantiating databases.

  4. object DefaultDBApi
  5. object HikariCPConnectionPool
  6. object TransactionIsolationLevel