Synchronous SQLite library for Node.js built on sql.js. Version 1.0.3 provides a simple synchronous API for common database operations (create, read, update, delete) with automatic save and pagination. Unlike async alternatives like better-sqlite3, it offers a CRUD helper layer (select, insert, update, remove) that returns RecordSet objects. Designed for simplicity, it exposes methods like runSQL and execute for raw SQL. The package is stable but rarely updated, suitable for small projects needing synchronous SQLite access.
npm install sync-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a table, inserting data, selecting, updating, and deleting rows synchronously.
Use async libraries like better-sqlite3 with worker threads or consider sql.js async methods.
Ensure WASM file is accessible; set SQL_JS_WASM_LOCATION if needed.
Use escape methods or switch to a library with prepared statements.
Run: npm install sql.js
Ensure typeof db === 'object' and db.table() is called if table name not passed in method.