Package-level declarations

Functions

Link copied to clipboard
suspend fun <T> newSuspendedTransaction(context: CoroutineContext? = null, db: Database? = null, transactionIsolation: Int? = null, statement: suspend Transaction.() -> T): T

Creates a new TransactionScope then calls the specified suspending statement, suspends until it completes, and returns the result.

Link copied to clipboard
suspend fun <T> suspendedTransactionAsync(context: CoroutineContext? = null, db: Database? = null, transactionIsolation: Int? = null, statement: suspend Transaction.() -> T): Deferred<T>

Creates a new TransactionScope and returns its future result as an implementation of Deferred.

Link copied to clipboard
suspend fun <T> Transaction.withSuspendTransaction(context: CoroutineContext? = null, statement: suspend Transaction.() -> T): T

Calls the specified suspending statement, suspends until it completes, and returns the result.