Skip to content

//selekt-android/com.bloomberg.selekt.android/SQLiteDatabase/beginExclusiveTransaction

beginExclusiveTransaction

[androidJvm]\

@DelicateApi

fun beginExclusiveTransaction()

Begins a transaction in exclusive mode. Prefer transact whenever possible.

Transactions can be nested. When the outer transaction is ended all of the work done in that transaction and all of the nested transactions will be committed or rolled back. The changes will be rolled back if any transaction is ended without being marked as clean (by calling setTransactionSuccessful). Otherwise they will be committed.

When in WAL-journal mode, this is equivalent to calling beginImmediateTransaction.

See also

SQLite's transaction