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

TransactionManager implementation registered to the provided database value db.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun <T> inTopLevelSuspendTransaction(db: R2dbcDatabase? = null, transactionIsolation: IsolationLevel? = db?.transactionManager?.defaultIsolationLevel, readOnly: Boolean? = db?.transactionManager?.defaultReadOnly, 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, transactionIsolation: IsolationLevel? = db?.transactionManager?.defaultIsolationLevel, readOnly: Boolean? = db?.transactionManager?.defaultReadOnly, 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.