BoneCP implementation of DBPlugin that provides a DBApi.
The Play Database API manages several connection pools.
Generic DBPlugin interface
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)
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")
Contains the JDBC database access API.
Example, retrieving a connection from the 'customers' datasource: