TxContext

interface TxContext<out T>(source)

A driver-agnostic unit of work. transaction is the underlying transaction handle. The owner of the transaction begins and commits it; callers only register post-commit side-effects via onCommitEnd (and optional onRollback cleanup), which run inside a synchronous commit/rollback callback.

Properties

Link copied to clipboard
abstract val transaction: T

Functions

Link copied to clipboard
abstract fun onCommitEnd(action: () -> Unit)
Link copied to clipboard
open fun onRollback(action: () -> Unit)