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 SimpleModule

    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 SimpleModule

    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 HikariCPConnectionPool extends ConnectionPool

    Permalink
    Annotations
    @Singleton()
  15. class HikariCPModule extends SimpleModule

    Permalink

    HikariCP runtime inject module.

  16. type NamedDatabase = db.NamedDatabase

    Permalink
  17. class NamedDatabaseProvider extends Provider[Database]

    Permalink

    Inject provider for named databases.

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

Inherited from AnyRef

Inherited from Any

Ungrouped