Transacter
A transaction-aware SqlDriver wrapper which can begin a Transaction on the current connection.
Types
Link copied to clipboard
A SQL transaction. Can be created through the driver via SqlDriver.newTransaction or through an implementation of Transacter by calling Transacter.transaction.
Functions
Link copied to clipboard
abstract fun transaction(noEnclosing: Boolean = false, body: TransactionWithoutReturn.() -> Unit)
Content copied to clipboard
Starts a Transaction and runs body in that transaction.
Link copied to clipboard
abstract fun <R> transactionWithResult(noEnclosing: Boolean = false, bodyWithReturn: TransactionWithReturn<R>.() -> R): R
Content copied to clipboard
Starts a Transaction and runs body in that transaction.