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

Interface for R2DBC transaction managers, responsible for creating and managing R2DBC transactions.

Link copied to clipboard

R2dbcTransactionManager implementation registered to the provided database value db.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

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

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.