SQLite driver for the Lupdo database abstraction layer (v2.0.0). Built on better-sqlite3, offering synchronous-like performance with connection pooling, WAL mode support, automatic WAL checkpointing, safe integer handling, and TypeScript types. Requires Node >=18 and lupdo ^4.0.1. Minimal configuration with pool size and driver-specific options like journal mode, synchronous pragma, and max WAL file size. Key differentiator: converts BigInt to Number internally for compatibility, returns non-integer numbers as strings to preserve precision. Does not support kill query or array parameter binding.
npm install lupdo-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an in-memory SQLite PDO with connection pool (min 2, max 3), runs a SELECT query, fetches all rows as array, and disconnects.
Parse returned strings with parseFloat() or Number() as needed.
Use positional or named placeholders with scalar values only.
Avoid using kill methods; rely on query timeouts or external mechanisms.
If you need full BigInt precision, consider disabling safe integers via driver options or handle the conversion manually.
Use `import { createSqlitePdo } from 'lupdo-sqlite'` or `const { createSqlitePdo } = require('lupdo-sqlite')`.Import from 'lupdo-sqlite' only; do not use subpaths like 'lupdo-sqlite/dist/...'.
Ensure `const statement = await pdo.query(...)` is awaited and the promise resolves.