DeepBase-nested-object database driver for Drizzle ORM (v3.6.9, stable, weekly releases). Unlike dialect-specific drivers (deepbase-sqlite, deepbase-mysql), deepbase-drizzle works with any Drizzle-supported database (SQLite, PostgreSQL, MySQL, etc.) by accepting a Drizzle `db` instance. Automatically creates storage tables on connect. Maintains `seq` column for stable insertion order, supporting `shift()` and `pop()`. ESM-only, requires TypeScript 5+.
npm install deepbase-drizzleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a DeepBase store backed by SQLite via Drizzle ORM; sets and retrieves nested keys.
Use default import: `import DrizzleDriver from 'deepbase-drizzle'`
Replace `driver: myDriver` with `db: myDriver`
Set `ensureTable: false` and create the table manually using the schema from the README.
If you need strict insertion ordering, use `store.set()` only for new keys or manually manage `seq`.
Ensure the factory returns an object with `{ db, client }` and that `client.close()` exists if you intend to use default disconnect logic.Use `import DrizzleDriver from 'deepbase-drizzle'` in an ESM context, or use dynamic `import()` in CJS.
Replace `import { drizzle } from 'drizzle-orm'` with `import { drizzle } from 'drizzle-orm/better-sqlite3'` (or your dialect).Either call `.connect()` (which auto-creates by default) or manually create the table using the schema: `CREATE TABLE deepbase_main (key TEXT PRIMARY KEY, value TEXT, seq INTEGER)`.
Pass `{ db: myDrizzleInstance }` to the DrizzleDriver constructor.