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

Functions

Link copied to clipboard
suspend fun <T> suspendTransaction(    context: CoroutineContext? = null,     transactionIsolation: IsolationLevel? = null,     readOnly: Boolean? = null,     db: R2dbcDatabase? = null,     statement: suspend R2dbcTransaction.() -> T): T

Creates a new TransactionScope then calls the specified suspending statement, suspends until it completes, and returns the result.

Link copied to clipboard
suspend fun <T> R2dbcTransaction.suspendTransaction(context: CoroutineContext? = null, statement: suspend R2dbcTransaction.() -> T): T

Calls the specified suspending statement, suspends until it completes, and returns the result.

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>

Creates a new TransactionScope and returns its future result as an implementation of Deferred.