Builder

Builder API responsible for constructing a custom R2dbcDatabase configuration parameter state.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var connectionFactoryOptions: ConnectionFactoryOptions

The ConnectionFactoryOptions state holder that should be associated to a io.r2dbc.spi.ConnectionFactory when creating connections.

Link copied to clipboard
Link copied to clipboard
open override var defaultIsolationLevel: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var defaultR2dbcIsolationLevel: IsolationLevel?

The default transaction IsolationLevel. If not specified, the database-specific level will be used. This can be overridden on a per-transaction level by specifying the transactionIsolation parameter of the org.jetbrains.exposed.v1.r2dbc.transactions.suspendTransaction.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var dispatcher: CoroutineDispatcher

The CoroutineDispatcher to be used when determining the scope of the underlying R2DBC database connection object.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Registry storing all built-in org.jetbrains.exposed.v1.r2dbc.mappers.TypeMapper classes, as well as any custom mappers implemented and detected by a ServiceLoader.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun connectionFactoryOptions(block: ConnectionFactoryOptions.Builder.() -> Unit)

Constructs a new ConnectionFactoryOptions state holder using a ConnectionFactoryOptions.Builder as the block receiver and sets the new object as the value of the R2dbcDatabaseConfig.connectionFactoryOptions property.

Link copied to clipboard
fun setUrl(url: String)

Parses an R2DBC connection url string and uses it to set the R2dbcDatabaseConfig.connectionFactoryOptions property. The expected format is r2dbc:driver[:protocol]://[user:password@]host[:port][/path][?option=value].