A lightweight Node.js module for SQLite database operations supporting both synchronous and asynchronous execution. Current stable version is 0.3.9 (last updated 2016). It provides simple wrappers for connect, run, insert, update, and close operations, with a callback-based async API and synchronous variants. Key differentiator is the mixed sync/async support, but it is outdated and lacks modern features like promises, ESM, or TypeScript definitions. Not recommended for new projects.
npm install sqlite-syncNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup: connecting to a database, creating a table, inserting a row (async), and querying all rows (sync).
Migrate to a maintained alternative like better-sqlite3 or sql.js.
Always check for res.error before assuming success, and consult the wiki for each method's return format.
Use a different package if you need multiple concurrent connections.
Prefer async callbacks or use async/await with a wrapper; better yet, switch to an async-native library.
Run `npm install sqlite-sync` in your project root.
Use `const sqlite = require('sqlite-sync');` instead of ES module imports.Do not call sqlite.run() or other methods after sqlite.close().
No dependency data recorded yet.