Utility layer for Kysely on SQLite that provides table schema inference, auto migration, auto-generated createdAt/updatedAt columns, soft delete support, WITHOUT ROWID, auto serialization/deserialization, precompiled queries, pagination, auto-nested transactions via savepoints, enhanced logging, and typesafe SQLite3 pragma. Current stable version is 1.0.0, requires Kysely >= 0.28.0. Ships TypeScript types. Differentiators from raw Kysely: schema-based table definitions, automatic migration generation, and built-in utility features like soft delete and pagination.
npm install kysely-sqlite-builderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a SQLite database using SqliteBuilder with schema-defined tables, auto-migration, and built-in logging.
Upgrade Kysely to at least 0.28.0.
Monitor release notes for import path changes.
Change import to 'import { defineTable } from 'kysely-sqlite-builder/schema''.Use SqliteBuilder instead of Kysely constructor.
Run db.syncDB() after modifying table schemas.
Use ESM import: import { SqliteBuilder } from 'kysely-sqlite-builder'Ensure import path is exact: 'kysely-sqlite-builder/schema'
Use new SqliteBuilder<InferDatabase<typeof DBSchema>>({...})