R2dbcTransactionInterface

Properties

Link copied to clipboard

The database connection used by the transaction.

Link copied to clipboard
abstract override val db: R2dbcDatabase
Link copied to clipboard
abstract override val outerTransaction: R2dbcTransaction?
Link copied to clipboard
abstract val readOnly: Boolean
Link copied to clipboard
abstract val transactionIsolation: IsolationLevel

The transaction isolation level of the transaction, which may differ from the set database level.

Functions

Link copied to clipboard
abstract suspend fun close()

Closes the transaction and releases any savepoints.

Link copied to clipboard
abstract suspend fun commit()

Saves all changes since the last commit or rollback operation.

Link copied to clipboard
abstract suspend fun rollback()

Reverts all changes since the last commit or rollback operation, or to the last set savepoint, if applicable.