SqlWeb is an extension of JsStore that allows using SQL queries for IndexedDB operations. Current stable version is 1.6.2. It provides a familiar SQL interface on top of JsStore's SQL-like query builder. The library is maintained alongside JsStore but has a distinct release cadence. Key differentiator: it enables direct SQL syntax (e.g., SELECT * FROM) instead of JsStore's JSON-based query objects. Requires JsStore >=4.0.3 as a peer dependency. Ships TypeScript definitions. Suitable for developers migrating from WebSQL or those preferring SQL syntax over programmatic APIs.
npm install sqlwebNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup of SqlWeb with JsStore: create connection, add plugin, run SQL queries including CREATE TABLE, INSERT, and SELECT.
Call connection.addPlugin(SqlWeb) after creating the connection instance.
Refer to SqlWeb documentation or source for supported SQL syntax.
Use consistent casing when creating tables and querying them.
Each $sql.run call is a separate transaction. Group operations carefully.
Add connection.addPlugin(SqlWeb) after creating the connection.
Run 'npm install jsstore@latest' to update to a compatible version.
Verify the table name matches exactly (case-sensitive) and that it was created before the query.