play.api

db

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
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. trait DBApi extends AnyRef

    DB API for managing application databases.

  6. class DBApiProvider extends Provider[DBApi]

    Inject provider for DB implementation of DB API.

    Inject provider for DB implementation of DB API.

    Annotations
    @Singleton()
  7. trait DBComponents extends AnyRef

    DB components (for compile-time injection).

  8. final class DBModule extends Module

    DB runtime inject module.

  9. trait Database extends AnyRef

    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

    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

    Default implementation of the DB API.

  12. abstract class DefaultDatabase extends Database

    Default implementation of the database API.

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

  13. trait HikariCPComponents extends AnyRef

    HikariCP components (for compile-time injection).

  14. class HikariCPConfig extends AnyRef

    HikariCP config

  15. class HikariCPConnectionPool extends ConnectionPool

    Annotations
    @Singleton()
  16. class HikariCPModule extends Module

    HikariCP runtime inject module.

  17. type NamedDatabase = db.NamedDatabase

  18. class NamedDatabaseProvider extends Provider[Database]

    Inject provider for named databases.

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

  8. package evolutions

  9. package slick

Inherited from AnyRef

Inherited from Any

Ungrouped