# Builder

class Builder : DatabaseConfig.Builder

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

## Constructors

Builder
Link copied to clipboard
constructor()

## Properties

connectionFactoryOptions
Link copied to clipboard
var connectionFactoryOptions: ConnectionFactoryOptions

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

defaultFetchSize
Link copied to clipboard
var defaultFetchSize: Int?
defaultIsolationLevel
Link copied to clipboard
open override var defaultIsolationLevel: Int
defaultMaxAttempts
Link copied to clipboard
var defaultMaxAttempts: Int
defaultMaxRetryDelay
Link copied to clipboard
var defaultMaxRetryDelay: Long
defaultMinRetryDelay
Link copied to clipboard
var defaultMinRetryDelay: Long
defaultQueryTimeout
Link copied to clipboard
var defaultQueryTimeout: Int
defaultR2dbcIsolationLevel
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.

defaultReadOnly
Link copied to clipboard
var defaultReadOnly: Boolean
defaultSchema
Link copied to clipboard
var defaultSchema: Schema?
dispatcher
Link copied to clipboard
var dispatcher: CoroutineDispatcher
explicitDialect
Link copied to clipboard
var explicitDialect: DatabaseDialect?
keepLoadedReferencesOutOfTransaction
Link copied to clipboard
var keepLoadedReferencesOutOfTransaction: Boolean
logTooMuchResultSetsThreshold
Link copied to clipboard
var logTooMuchResultSetsThreshold: Int
maxEntitiesToStoreInCachePerEntity
Link copied to clipboard
var maxEntitiesToStoreInCachePerEntity: Int
preserveIdentifierCasing
Link copied to clipboard
var preserveIdentifierCasing: Boolean
preserveKeywordCasing
Link copied to clipboard
var preserveKeywordCasing: Boolean
sqlLogger
Link copied to clipboard
var sqlLogger: SqlLogger?
typeMapping
Link copied to clipboard
var typeMapping: R2dbcTypeMapping

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`.

useNestedTransactions
Link copied to clipboard
var useNestedTransactions: Boolean
warnLongQueriesDuration
Link copied to clipboard
var warnLongQueriesDuration: Long?

## Functions

build
Link copied to clipboard
fun build(): R2dbcDatabaseConfig
connectionFactoryOptions
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.

setUrl
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]`.