Transacter

A transaction-aware SqlDriver wrapper which can begin a Transaction on the current connection.

Inheritors

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)

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

Starts a Transaction and runs bodyWithReturn in that transaction.