Minisqlite provides SQLite bindings for Node.js with the current stable version 2.3.0. It wraps SQLite 3.36.0, offering pull-based processing for coordinated fetching from JavaScript and support for user-defined JavaScript functions. Unlike popular alternatives like better-sqlite3 or sql.js, minisqlite emphasizes direct control over fetching and integrates custom functions seamlessly. The package is actively maintained with regular updates.
npm install minisqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an in-memory SQLite database, executes DDL and DML statements, then queries using pull-based iteration.
Use new Database(':memory:') instead of new Database({ memory: true }).Use for...of or Array.from() to collect rows.
Replace db.each(sql, callback) with const stmt = db.prepare(sql); for (const row of stmt.iterate()) { callback(row); }.Ensure callbacks are synchronous; avoid async/await inside custom functions.
Upgrade Node.js to version 12 or later.
Run npm install minisqlite and ensure import uses named export: import { Database } from 'minisqlite'.Change import minisqlite from 'minisqlite' to import { Database } from 'minisqlite' and instantiate new Database().Execute CREATE TABLE statement before attempting to query the table.
Ensure the argument to db.prepare() is a string SQL query.
No dependency data recorded yet.