connect
Creates a Database instance.
Note: This function does not immediately instantiate an actual connection to a database, but instead provides the details necessary to do so whenever a connection is required by a transaction.
Parameters
The DataSource object to be used as a means of getting a connection.
Any setup that should be applied to each new connection.
Configuration parameters for this Database instance.
The TransactionManager responsible for new transactions that use this Database instance.
Creates a Database instance.
Note: This function does not immediately instantiate an actual connection to a database, but instead provides the details necessary to do so whenever a connection is required by a transaction.
Parameters
A function that returns a new connection.
Configuration parameters for this Database instance.
The TransactionManager responsible for new transactions that use this Database instance.
Creates a Database instance.
Note: This function does not immediately instantiate an actual connection to a database, but instead provides the details necessary to do so whenever a connection is required by a transaction.
Parameters
The URL that represents the database when getting a connection.
The JDBC driver class. If not provided, the specified url will be used to find a match from the existing driver mappings.
The database user that owns the new connections.
The password specific for the database user.
Any setup that should be applied to each new connection.
Configuration parameters for this Database instance.
The TransactionManager responsible for new transactions that use this Database instance.