Utility functions for Kysely SQL query builder with SQLite backend. Version 0.5.8 provides helpers for logging, savepoints, integrity checking, version management, pragma optimization, foreign key control, query precompilation, and soft delete wrapper. Release is stable with MIT license. Key differentiators: type-safe pragma optimization, savepoint-based nested transactions, precompiled queries for performance. Minimal dependencies (only peer dep kysely >=0.26). Ships TypeScript types.
npm install kysely-sqlite-utilsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows importing and using createKyselyLogger and runWithSavePoint with Kysely SQLite.
Ensure enable parameter is strictly boolean; avoid truthy/falsy values.
Replace precompileQuery with createPrecompile.
Upgrade kysely to 0.26 or later.
Use import type { SavePoint } from 'kysely-sqlite-utils'.Use named import: import { savePoint } from 'kysely-sqlite-utils'Import from main package: import { savePoint } from 'kysely-sqlite-utils'Use import type { SavePoint } from 'kysely-sqlite-utils'Ensure TypeScript >=4.5 and use type-only import.