An SQLite provider for zod-dbs, a tool that generates Zod schemas from your database schema. Version 1.0.5, actively maintained. It leverages better-sqlite3 to introspect SQLite database files (including :memory:) and produce type-safe Zod schemas for validation. Differentiates by being a first-party provider for zod-dbs, tightly integrated with its configuration and CLI.
npm install zod-dbs-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates programmatic usage: creating a provider and generating Zod schemas from a SQLite database.
Run: npm install better-sqlite3@>=11
Use import syntax or ensure your project is ESM (e.g., type: 'module' in package.json).
Omit arguments; configuration is passed via config in generateZodSchemas.
Check zod-dbs CLI documentation for --config-file option or use programmatic API.
npm install better-sqlite3
Add 'type': 'module' to package.json or switch to .mjs extension.
Use: import { createProvider } from 'zod-dbs-sqlite'