Package

play.api

db

Permalink

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

Type Members

  1. trait BoneCPComponents extends AnyRef

    Permalink

    BoneCP components (for compile-time injection).

  2. class BoneCPModule extends Module

    Permalink

    BoneCP runtime inject module.

  3. class BoneConnectionPool extends ConnectionPool

    Permalink

    BoneCP implementation of connection pool interface.

    BoneCP implementation of connection pool interface.

    Annotations
    @Singleton()
  4. trait ConnectionPool extends AnyRef

    Permalink

    Connection pool API for managing data sources.

  5. trait DBApi extends AnyRef

    Permalink

    DB API for managing application databases.

  6. class DBApiProvider extends Provider[DBApi]

    Permalink

    Inject provider for DB implementation of DB API.

    Inject provider for DB implementation of DB API.

    Annotations
    @Singleton()
  7. trait DBComponents extends AnyRef

    Permalink

    DB components (for compile-time injection).

  8. final class DBModule extends Module

    Permalink

    DB runtime inject module.

  9. trait Database extends AnyRef

    Permalink

    Database API.

  10. case class DatabaseConfig(driver: Option[String], url: Option[String], username: Option[String], password: Option[String], jndiName: Option[String]) extends Product with Serializable

    Permalink

    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

  11. class DefaultDBApi extends DBApi

    Permalink

    Default implementation of the DB API.

  12. abstract class DefaultDatabase extends Database

    Permalink

    Default implementation of the database API.

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

  13. trait HikariCPComponents extends AnyRef

    Permalink

    HikariCP components (for compile-time injection).

  14. class HikariCPConfig extends AnyRef

    Permalink

    HikariCP config

  15. class HikariCPConnectionPool extends ConnectionPool

    Permalink
    Annotations
    @Singleton()
  16. class HikariCPModule extends Module

    Permalink

    HikariCP runtime inject module.

  17. type NamedDatabase = db.NamedDatabase

    Permalink
  18. class NamedDatabaseProvider extends Provider[Database]

    Permalink

    Inject provider for named databases.

  19. class PooledDatabase extends DefaultDatabase

    Permalink

    Default implementation of the database API using a connection pool.

Value Members

  1. object BoneConnectionPool

    Permalink
  2. object ConnectionPool

    Permalink
  3. object DatabaseConfig extends Serializable

    Permalink
  4. object Databases

    Permalink

    Creation helpers for manually instantiating databases.

  5. object DefaultDBApi

    Permalink
  6. object HikariCPConnectionPool

    Permalink
  7. package evolutions

    Permalink
  8. package slick

    Permalink

Deprecated Value Members

  1. object DB

    Permalink

    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")
    Annotations
    @deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped