Skip to content

Changelog for @signaldb/sqlite ​

Added ​

  • createSQLiteAdapter(driver, tableName), a storage adapter that persists a collection in SQLite — on a device with expo-sqlite or op-sqlite, in Node.js with node:sqlite. You connect it to your SQLite library through a two-method SQLiteDriver (execute and select), so the package has no dependency on any of them.
  • Writes run in transactions, one at a time per driver, so collections sharing a connection never open a transaction inside another one. A failed batch is rolled back as a whole.
  • Indices are kept in SQLite and survive a restart without being rebuilt. A query with an equality on id or on an indexed field reads only the matching rows instead of the whole table.

Released under the MIT License.