Back to Exposed

connectionFactoryOptions

docs/api/exposed-r2dbc/org.jetbrains.exposed.v1.r2dbc/-r2dbc-database-config/-builder/connection-factory-options.html

1.2.01.1 KB
Original Source

connectionFactoryOptions

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.


var connectionFactoryOptions: ConnectionFactoryOptions

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

By default, any R2DBC driver-specific org.postgresql.core.ConnectionFactory passed to R2dbcDatabase.connect() will take priority over this state holder. If a factory is not used directly and this property is not manually configured, the state object will be constructed by parsing the provided R2DBC connection url string.

Generated by Dokka © 2026 Copyright