SQLite database driver for DeepBase providing high-performance, ACID-compliant storage for nested JavaScript objects. Uses better-sqlite3 with synchronous operations wrapped in async API. Supports PRAGMA modes (none, safe, balanced, fast) for tuning durability vs performance. Includes singleton pattern for shared connections across instances. Current stable version: 3.6.9. Active development with regular releases. Key differentiator: seamlessly integrates with DeepBase's nested object storage using dot-notation path indexing and monotonic sequence ordering for deterministic key order.
npm install deepbase-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a DeepBase instance with SQLite driver, connects, sets and retrieves a nested object, then closes.
Use explicit pragma: 'none' to create backward-compatible tables.
Replace SqliteFastDriver with new SqliteDriver({ pragma: 'fast' }).Install with --ignore-scripts=false or manually install better-sqlite3 after checking build prerequisites.
Manage a single instance per database file or use separate paths to avoid sharing.
Run ALTER TABLE to add seq column (driver does this automatically on connect for v3.3+).
Run 'npm install deepbase-sqlite --ignore-scripts=false' or install better-sqlite3 manually.
Change to: import SqliteDriver from 'deepbase-sqlite'
Use identical pragma mode or different database names.
Run 'npm install deepbase' alongside deepbase-sqlite.