Transacter

interface Transacter : TransacterBase

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

Types

Link copied to clipboard
abstract class Transaction : TransactionCallbacks

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 body in that transaction.

Inheritors

Link copied to clipboard