abstract class Transaction
A SQL transaction. Can be created through the driver via SqlDriver.newTransaction or through an implementation of Transacter by calling Transacter.transaction.
Transaction()
A SQL transaction. Can be created through the driver via SqlDriver.newTransaction or through an implementation of Transacter by calling Transacter.transaction. |
abstract val enclosingTransaction: Transaction?
The parent transaction, if there is any. |
fun afterCommit(function: () -> Unit): Unit
Queues function to be run after this transaction successfully commits. |
|
fun afterRollback(function: () -> Unit): Unit
Queues function to be run after this transaction rolls back. |
|
abstract fun endTransaction(successful: Boolean): Unit
Signal to the underlying SQL driver that this transaction should be finished. |
|
fun rollback(): Nothing
Rolls back this transaction. |
|
fun transaction(body: Transaction.() -> Unit): Unit
Begin an inner transaction. |