A pooled SQLite client for Node.js that wraps the sqlite3 library with ES6 Promises, connection pooling, managed transactions, and an SQL-based migrations API. Originally based on the node-sqlite library, this package (v1.2.5) is stable but sees infrequent releases. It provides similar API to sqlite3 but with promise-based methods and no callbacks. Its key differentiator is connection pooling via generic-pool, allowing multiple connections with configurable min/max pool sizes, and automatic transaction management with commit/rollback. It includes legacy support for Node.js v5 and below.
npm install sqlite-poolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up an Express server with SQLite pool, using Promise.all to run concurrent queries in separate connections.
Use legacy import for Node.js v5: require('sqlite-pool/legacy')Use .then() and .catch() or async/await instead of callbacks.
Ensure database file is accessible when first query is executed.
Pass { Promise: require('bluebird') } as second argument to use Bluebird.Run npm install sqlite3 alongside sqlite-pool.
Run 'npm install sqlite3' in your project.
Ensure you call 'new Sqlite()' and that the database file path is correct.
Use db.use() with BEGIN IMMEDIATE to serialize writes.
Use legacy import: require('sqlite-pool/legacy') or include a Promise library.