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.
The connection provider for database. If not provided, a service loader will be used to locate and load a provider for DatabaseConnectionAutoRegistration.
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.
The connection provider for database. If not provided, a service loader will be used to locate and load a provider for DatabaseConnectionAutoRegistration.
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 connection provider for database. If not provided, a service loader will be used to locate and load a provider for DatabaseConnectionAutoRegistration.
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.