Changelog for @signaldb/sqlite
Added
createSQLiteAdapter(driver, tableName), a storage adapter that persists a collection in SQLite — on a device withexpo-sqliteorop-sqlite, in Node.js withnode:sqlite. You connect it to your SQLite library through a two-methodSQLiteDriver(executeandselect), 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
idor on an indexed field reads only the matching rows instead of the whole table.