Package-level declarations
Types
Link copied to clipboard
Represents a unit block of work that is performed on a database using an R2DBC driver.
Link copied to clipboard
class TransactionManager(db: R2dbcDatabase, setupTxConnection: (R2dbcExposedConnection<*>, R2dbcTransactionInterface) -> Unit? = null) : TransactionManagerApi
TransactionManager implementation registered to the provided database value db.
Properties
Link copied to clipboard
The TransactionManager instance that is associated with this R2dbcDatabase.
Functions
Link copied to clipboard
suspend fun <T> inTopLevelSuspendTransaction(transactionIsolation: IsolationLevel, readOnly: Boolean = false, db: R2dbcDatabase? = null, outerTransaction: R2dbcTransaction? = null, statement: suspend R2dbcTransaction.() -> T): T
Creates a transaction with the specified transactionIsolation and readOnly settings, then calls the statement block with this transaction as its receiver and returns the result.
Link copied to clipboard
suspend fun <T> suspendTransaction(db: R2dbcDatabase? = null, statement: suspend R2dbcTransaction.() -> T): T
Creates a transaction then calls the statement block with this transaction as its receiver and returns the result.
suspend fun <T> suspendTransaction(transactionIsolation: IsolationLevel, readOnly: Boolean = false, db: R2dbcDatabase? = null, statement: suspend R2dbcTransaction.() -> T): T
Creates a transaction with the specified transactionIsolation and readOnly settings, then calls the statement block with this transaction as its receiver and returns the result.
suspend fun <T> suspendTransaction(context: CoroutineContext? = null, transactionIsolation: IsolationLevel? = null, readOnly: Boolean? = null, db: R2dbcDatabase? = null, statement: suspend R2dbcTransaction.() -> T): T
Link copied to clipboard
suspend fun <T> suspendTransactionAsync(context: CoroutineContext? = null, db: R2dbcDatabase? = null, transactionIsolation: IsolationLevel? = null, readOnly: Boolean? = null, statement: suspend R2dbcTransaction.() -> T): Deferred<T>