Retrieves a JDBC connection, with auto-commit set to true
.
Retrieves a JDBC connection, with auto-commit set to true
.
Don’t forget to release the connection at some point by calling close().
the data source name
a JDBC connection
Shutdown pool for given datasource
Shutdown pool for given datasource
Retrieves a JDBC connection.
Retrieves a JDBC connection.
Don’t forget to release the connection at some point by calling close().
the data source name
when true
, sets this connection to auto-commit
a JDBC connection
Retrieves the JDBC connection URL for a particular data source.
Retrieves the JDBC connection URL for a particular data source.
the data source name
The JDBC URL connection string, i.e. jdbc:…
Execute a block of code, providing a JDBC connection.
Execute a block of code, providing a JDBC connection. The connection and all created statements are automatically released.
The datasource name.
Code block to execute.
Execute a block of code, in the scope of a JDBC transaction.
Execute a block of code, in the scope of a JDBC transaction. The connection and all created statements are automatically released. The transaction is automatically committed, unless an exception occurs.
The datasource name.
Code block to execute.
The Play Database API manages several connection pools.