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