# R2dbcTransactionInterface

interface R2dbcTransactionInterface : TransactionInterface

Represents a unit block of work that is performed on a database using an R2DBC driver.

#### Inheritors

R2dbcTransaction

## Properties

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

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

transactionManager
Link copied to clipboard
abstract val transactionManager: TransactionManagerApi

## Functions

close
Link copied to clipboard
abstract suspend fun close()

Closes the transaction and releases any savepoints.

commit
Link copied to clipboard
abstract suspend fun commit()

Saves all changes since the last commit or rollback operation.

connection
Link copied to clipboard
abstract suspend fun connection(): R2dbcExposedConnection<*>

Retrieves the database connection used by the transaction.

rollback
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.