Change transaction type to immediate

pull/2957/head
Alex Baker 5 months ago
parent 8ccab99f23
commit ec94d92e11

@ -9,7 +9,7 @@ import androidx.sqlite.SQLiteStatement
suspend fun <T> RoomDatabase.withTransaction(block: suspend TransactionScope<T>.() -> T): T = suspend fun <T> RoomDatabase.withTransaction(block: suspend TransactionScope<T>.() -> T): T =
useWriterConnection { transactor -> useWriterConnection { transactor ->
transactor.withTransaction(Transactor.SQLiteTransactionType.DEFERRED) { transactor.withTransaction(Transactor.SQLiteTransactionType.IMMEDIATE) {
block() block()
} }
} }

Loading…
Cancel
Save