Repository navigation
v0.3.10
This version adds the synced transaction. The change is backward compatible.
syncedTransaction(db, work, options)does the work in oneBEGIN IMMEDIATEtransaction whose commit is on the disk when the function ends.- On a connection with
NORMAL, it setssynchronoustoFULLfor its commit, and sets the earlier value again at the end. A connection withFULLorEXTRAdoes not change. - A call in a transaction in progress throws. The rules of
transactionapply to the rollback, the synchronous work and the dry run. - The type
SyncedTransactionDatabaseis the part of a connection that the function uses. - The power-cut test has two new cases. With
NORMAL, the disk keeps each commit up to the last synced transaction.
Runtime dependencies: none.