Skip to content

v0.3.12

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 00:25
e35199d

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_only or synchronous. 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 onRollbackError gets the error of the restore. For example, SQLite refuses a change of synchronous in 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.