- Add
createAggregateFunction
method
- Add support for SQLite's KVVFS. This means you can now use SQLocal to interact with databases stored in localStorage or sessionStorage by passing
:localStorage:
or :sessionStorage:
to the databasePath
parameter. Note: due to browser limitations, the maximum size of a KVVFS database is less than 5MB.
new SQLocal(':localStorage:')
new SQLocal(':sessionStorage:')
- Add a new
processor
option which allows you to override how the SQLocal instance communicates with the SQLite database. This is for advanced use-cases, such as for using custom compilations or forks of SQLite or for cases where you need to initialize the web worker yourself rather than have SQLocal do it.
const driver = new MyCustomDriver();
const processor = new SQLocalProcessor(driver);
const db = new SQLocal({ databasePath: ':custom:', processor });
- The package now exports all types related to SQLocal's external API and its built-in drivers.