SQLite adapter for the schema-seed test data seeding library (v0.1.11). Automatically loaded by the schema-seed CLI when a SQLite connection string is provided. Enables SQLite database seeding with schema-seed's schema-driven approach. Released under active development with TypeScript type definitions. Key differentiator: built specifically for schema-seed's adapter-based architecture, simplifying SQLite integration compared to writing custom seeding logic with better-sqlite3 or sql.js.
npm install schema-seed-adapter-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an in-memory SQLite database, seeds 10 users with auto-incrementing IDs, first names, and emails using schema-seed.
Use ES modules (import) or set type: "module" in package.json.
Use better-sqlite3 exclusively. Example: const Database = require('better-sqlite3'); const db = new Database(path);Use named import: import { SqliteAdapter } from 'schema-seed-adapter-sqlite'Change import to: import { SqliteAdapter } from 'schema-seed-adapter-sqlite'Install better-sqlite3: npm install better-sqlite3
Use adapter with Seeder: const seeder = new Seeder(adapter, config); await seeder.seed();
Ensure you are using better-sqlite3: const Database = require('better-sqlite3'); const db = new Database(path);