Repository navigation
This version fixes the error that readTransaction and syncedTransaction throw after a failed work. The API is the same.
- Each function sets a pragma again at the end:
query_onlyorsynchronous. Before this version, an error of that restore hid the error of the work. - After an error of the work, the work error stays the error of the function, and
onRollbackErrorgets the error of the restore. For example, SQLite refuses a change ofsynchronousin a transaction that a failed rollback did not end. - After a work with no error, an error of the restore is still the error of the function. The commit stays, and the connection keeps the setting of the work.
Runtime dependencies: none.