Skip to content

//runtime/com.squareup.sqldelight/TransactionWithReturn

TransactionWithReturn

[common] interface TransactionWithReturn<R> : TransactionCallbacks

Functions

Name Summary
afterCommit [common]
Content
abstract fun afterCommit(function: () -> Unit)


afterRollback [common]
Content
abstract fun afterRollback(function: () -> Unit)


rollback [common]
Content
abstract fun rollback(returnValue: R): Nothing
More info
Rolls back this transaction.


transaction [common]
Content
abstract fun <R> transaction(body: TransactionWithReturn<R>.() -> R): R
More info
Begin an inner transaction.