SuspendingTransacter

interface SuspendingTransacter : TransacterBase

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

Functions

Link copied to clipboard
abstract suspend fun transaction(noEnclosing: Boolean = false, body: suspend SuspendingTransactionWithoutReturn.() -> Unit)

Starts a Transaction and runs body in that transaction.

Link copied to clipboard
abstract suspend fun <R> transactionWithResult(noEnclosing: Boolean = false, bodyWithReturn: suspend SuspendingTransactionWithReturn<R>.() -> R): R

Starts a Transaction and runs body in that transaction.

Inheritors

Link copied to clipboard