connect
Creates an R2dbcDatabase 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 TransactionManager responsible for new transactions that use this R2dbcDatabase instance.
Builder of configuration parameters for this R2dbcDatabase instance.
Throws
If a corresponding database dialect cannot be resolved from values provided to databaseConfig.
Creates an R2dbcDatabase 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 ConnectionFactory entry point for an R2DBC driver when getting a connection.
The TransactionManager responsible for new transactions that use this R2dbcDatabase instance.
Configuration parameters for this R2dbcDatabase instance. At minimum, a value for explicitDialect
must be provided to prevent throwing an exception.
Throws
If a corresponding database dialect cannot be resolved from the connectionFactory or from values provided to databaseConfig.
Creates an R2dbcDatabase 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 R2DBC 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.
Configuration parameters for this R2dbcDatabase instance.
The TransactionManager responsible for new transactions that use this R2dbcDatabase instance.
Throws
If a corresponding database dialect cannot be resolved from the provided url.
Creates an R2dbcDatabase 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
Configuration parameters for this R2dbcDatabase instance.
The TransactionManager responsible for new transactions that use this R2dbcDatabase instance.
Throws
If a corresponding database dialect cannot be resolved from the provided databaseConfig.