docs/api/exposed-r2dbc/org.jetbrains.exposed.v1.r2dbc.transactions/-transaction-manager/-companion/index.html
object Companion
Members
Link copied to clipboard
var defaultDatabase: R2dbcDatabase?
The database to use by default in all transactions.
Link copied to clipboard
val manager: R2dbcTransactionManager
Returns the R2dbcTransactionManager for the current context.
Link copied to clipboard
val primaryDatabase: R2dbcDatabase?
The currently active database, which is either the default database or the last instance created. Returns null if no database has been registered.
Link copied to clipboard
fun closeAndUnregister(database: R2dbcDatabase)
Clears any association between the provided database and its TransactionManager, and ensures that the database instance will not be available for use in future transactions.
Link copied to clipboard
fun current(): R2dbcTransaction
Returns the current R2dbcTransaction.
Link copied to clipboard
fun currentOrNew(isolation: IsolationLevel? = null): R2dbcTransaction
Returns the current R2dbcTransaction, or creates a new transaction with the provided isolation level.
Link copied to clipboard
fun currentOrNull(): R2dbcTransaction?
Returns the current R2dbcTransaction, or null if none exists.
Link copied to clipboard
fun managerFor(database: R2dbcDatabase): R2dbcTransactionManager
Returns the R2dbcTransactionManager instance associated with the provided database.
Link copied to clipboard
fun registerManager(database: R2dbcDatabase, manager: R2dbcTransactionManager)
Associates the provided database with a specific manager.
Generated by Dokka © 2026 Copyright