TransactionManager

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

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var defaultIsolationLevel: IsolationLevel?

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

Link copied to clipboard
open override var defaultMaxAttempts: Int
Link copied to clipboard
open override var defaultMaxRetryDelay: Long
Link copied to clipboard
open override var defaultMinRetryDelay: Long
Link copied to clipboard
open override var defaultReadOnly: Boolean

Functions

Link copied to clipboard
open override fun bindTransactionToThread(transaction: Transaction?)
Link copied to clipboard
open override fun currentOrNull(): R2dbcTransaction?
Link copied to clipboard
fun newTransaction(isolation: IsolationLevel = defaultIsolationLevel!!, readOnly: Boolean = defaultReadOnly, outerTransaction: R2dbcTransaction? = null): R2dbcTransaction

Returns an R2dbcTransaction instance.

Link copied to clipboard
open override fun toString(): String