play.api

db

package db

Contains the JDBC database access API.

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

val conn = DB.getConnection("customers")
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. db
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait BoneCPComponents extends AnyRef

    BoneCP components (for compile-time injection).

  2. class BoneCPModule extends Module

    BoneCP runtime inject module.

  3. class BoneConnectionPool extends ConnectionPool

    BoneCP implementation of connection pool interface.

    BoneCP implementation of connection pool interface.

    Annotations
    @Singleton()
  4. trait ConnectionPool extends AnyRef

    Connection pool API for managing data sources.

  5. class DBApiProvider extends Provider[DBApi]

    Inject provider for DB implementation of DB API.

    Inject provider for DB implementation of DB API.

    Annotations
    @Singleton()
  6. trait DBComponents extends AnyRef

    DB components (for compile-time injection).

  7. final class DBModule extends Module

    DB runtime inject module.

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

  9. class DefaultDBApi extends DBApi

    Default implementation of the DB API.

  10. abstract class DefaultDatabase extends Database

    Default implementation of the database API.

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

  11. trait HikariCPComponents extends AnyRef

    HikariCP components (for compile-time injection).

  12. class HikariCPConfig extends AnyRef

    HikariCP config

  13. class HikariCPConnectionPool extends ConnectionPool

    Annotations
    @Singleton()
  14. class HikariCPModule extends Module

    HikariCP runtime inject module.

  15. type NamedDatabase = db.NamedDatabase

  16. class NamedDatabaseProvider extends Provider[Database]

    Inject provider for named databases.

  17. class PooledDatabase extends DefaultDatabase

    Default implementation of the database API using a connection pool.

Value Members

  1. object BoneConnectionPool

  2. object ConnectionPool

  3. object DB

    Provides a high-level API for getting JDBC connections.

    Provides a high-level API for getting JDBC connections.

    For example:

    val conn = DB.getConnection("customers")
  4. object DatabaseConfig extends Serializable

  5. object Databases

    Creation helpers for manually instantiating databases.

  6. object DefaultDBApi

  7. object HikariCPConnectionPool

Inherited from AnyRef

Inherited from Any

Ungrouped