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. class BoneCPPlugin extends DBPlugin

    BoneCP implementation of DBPlugin that provides a DBApi.

  2. trait DBApi extends AnyRef

    The Play Database API manages several connection pools.

  3. trait DBPlugin extends Plugin

    Generic DBPlugin interface

  4. trait HasInternalConnection extends AnyRef

    Provides an interface for retrieving the jdbc driver's implementation of java.

    Provides an interface for retrieving the jdbc driver's implementation of java.sql.Connection from a "decorated" Connection (such as the Connection that DB.withConnection provides). Upcasting to this trait should be used with caution since exposing the internal jdbc connection can violate the guarantees Play otherwise makes (like automatically closing jdbc statements created from the connection)

Value Members

  1. 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")
  2. package evolutions

Inherited from AnyRef

Inherited from Any

Ungrouped