# Companion

object Companion

## Functions

connect
Link copied to clipboard
fun connect(manager: (R2dbcDatabase) -> R2dbcTransactionManager = { TransactionManager(it) }, databaseConfig: R2dbcDatabaseConfig.Builder.() -> Unit = {}): R2dbcDatabase
fun connect(manager: (R2dbcDatabase) -> R2dbcTransactionManager = { TransactionManager(it) }, databaseConfig: R2dbcDatabaseConfig.Builder = R2dbcDatabaseConfig.Builder()): R2dbcDatabase
fun connect(databaseConfig: R2dbcDatabaseConfig, manager: (R2dbcDatabase) -> R2dbcTransactionManager = { TransactionManager(it) }): R2dbcDatabase
fun connect(connectionFactory: ConnectionFactory, databaseConfig: R2dbcDatabaseConfig.Builder, manager: (R2dbcDatabase) -> R2dbcTransactionManager = { TransactionManager(it) }): R2dbcDatabase
fun connect(url: String, driver: String = getDriver(url), user: String = "", password: String = "", manager: (R2dbcDatabase) -> R2dbcTransactionManager = { TransactionManager(it) }, databaseConfig: R2dbcDatabaseConfig.Builder = R2dbcDatabaseConfig.Builder()): R2dbcDatabase

Creates an R2dbcDatabase instance.

getDefaultIsolationLevel
Link copied to clipboard
fun getDefaultIsolationLevel(db: R2dbcDatabase): IsolationLevel

Returns the stored default transaction isolation level for a specific database.

registerDialectMetadata
Link copied to clipboard
fun registerDialectMetadata(prefix: String, metadata: () -> DatabaseDialectMetadata)

Registers a new DatabaseDialectMetadata with the identifier prefix.