sqldelight-runtime / com.squareup.sqldelight / TransacterImpl / transaction

transaction

open fun transaction(noEnclosing: Boolean, body: Transaction.() -> Unit): Unit

Overrides Transacter.transaction

Starts a Transaction and runs body in that transaction.

Exceptions

IllegalStateException - if noEnclosing is true and there is already an active Transaction on this thread.