A lightweight SQLite library that provides tagged template literal queries (same API as sqlite-tag) but without the native sqlite3 module dependency, using spawned sqlite3 process with -json output. Current stable version is v0.7.1, with irregular releases. Key differentiators: works in environments where native modules cannot compile (e.g., restricted CI, serverless), requires only the sqlite3 CLI (v3.33+), and supports transactions, IN clauses via arrays, and :memory: databases (Node 16+). Performance is similar to native sqlite3 but each query is a spawn call except transactions.
npm install sqlite-tag-spawnedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage with in-memory database: create table, transaction, query all rows, and fetch single row.
Use a named file instead of ':memory:' for persistence; for ephemeral data, ensure process cleanup.
Use the 'persistent' option to keep the sqlite3 process alive, or consider sqlite-tag (native binding) for performance-critical apps.
Ensure sqlite3 CLI version >= 3.33. Check with 'sqlite3 --version'.
Verify the custom executable supports -json, -init, and -bail flags.
Install a newer version of sqlite3 via your package manager or from https://sqlite.org/download.html.
Install sqlite3 CLI or set the 'bin' option to the correct executable path.
Use 'const SQLiteTagSpawned = require("sqlite-tag-spawned").default;' or switch to ESM 'import'.No dependency data recorded yet.