Back to Exposed

TransactionManager

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

1.2.04.2 KB
Original Source

TransactionManager

class TransactionManager(val db: R2dbcDatabase, setupTxConnection: (R2dbcExposedConnection<*>, R2dbcTransactionInterface) -> Unit? = null) : R2dbcTransactionManager

R2dbcTransactionManager implementation registered to the provided database value db.

setupTxConnection can be provided to override the default configuration of transaction settings when a connection is retrieved from the database.

MembersMembers & Extensions

Constructors

TransactionManager

Link copied to clipboard

constructor(db: R2dbcDatabase, setupTxConnection: (R2dbcExposedConnection<*>, R2dbcTransactionInterface) -> Unit? = null)

Types

Companion

Link copied to clipboard

object Companion

Properties

db

Link copied to clipboard

open override val db: R2dbcDatabase

The database instance associated with this transaction manager.

defaultIsolationLevel

Link copied to clipboard

open override var defaultIsolationLevel: IsolationLevel?

The default transaction isolation level. Unless specified, the database-specific level will be used.

defaultMaxAttempts

Link copied to clipboard

open override var defaultMaxAttempts: Int

defaultMaxRetryDelay

Link copied to clipboard

open override var defaultMaxRetryDelay: Long

defaultMinRetryDelay

Link copied to clipboard

open override var defaultMinRetryDelay: Long

defaultReadOnly

Link copied to clipboard

open override var defaultReadOnly: Boolean

Functions

currentOrNull

Link copied to clipboard

fun R2dbcTransactionManager.currentOrNull(): R2dbcTransaction?

Returns the current R2DBC transaction from the thread-local stack for this manager's database, or null if none exists.

newTransaction

Link copied to clipboard

open override fun newTransaction(isolation: IsolationLevel? = defaultIsolationLevel, readOnly: Boolean? = defaultReadOnly, outerTransaction: R2dbcTransaction? = null): R2dbcTransaction

Returns an R2dbcTransaction instance.

toString

Link copied to clipboard

open override fun toString(): String

Generated by Dokka © 2026 Copyright