Back to Exposed

Companion

docs/api/exposed-r2dbc/org.jetbrains.exposed.v1.r2dbc.transactions/-transaction-manager/-companion/index.html

1.2.03.5 KB
Original Source

Companion

object Companion

Members

Properties

defaultDatabase

Link copied to clipboard

var defaultDatabase: R2dbcDatabase?

The database to use by default in all transactions.

manager

Link copied to clipboard

val manager: R2dbcTransactionManager

Returns the R2dbcTransactionManager for the current context.

primaryDatabase

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.

Functions

closeAndUnregister

Link copied to clipboard

@Synchronized

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.

current

Link copied to clipboard

fun current(): R2dbcTransaction

Returns the current R2dbcTransaction.

currentOrNew

Link copied to clipboard

fun currentOrNew(isolation: IsolationLevel? = null): R2dbcTransaction

Returns the current R2dbcTransaction, or creates a new transaction with the provided isolation level.

currentOrNull

Link copied to clipboard

fun currentOrNull(): R2dbcTransaction?

Returns the current R2dbcTransaction, or null if none exists.

managerFor

Link copied to clipboard

fun managerFor(database: R2dbcDatabase): R2dbcTransactionManager

Returns the R2dbcTransactionManager instance associated with the provided database.

registerManager

Link copied to clipboard

@Synchronized

fun registerManager(database: R2dbcDatabase, manager: R2dbcTransactionManager)

Associates the provided database with a specific manager.

Generated by Dokka © 2026 Copyright