A custom dialect for Kysely (>=0.26.0) that enables using Kysely query builder with Capacitor Community SQLite plugin. Current stable version: 1.0.2. Provides a connection between Kysely's type-safe SQL query building and Capacitor's SQLite driver for mobile and web. Requires manual iOS/Android configuration per @capacitor-community/sqlite. Supports encryption, mode selection, and read-only modes.
npm install capacitor-sqlite-kyselyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Kysely instance with Capacitor SQLite dialect, configuring database name and options.
Refer to @capacitor-community/sqlite docs for web setup.
Use default import: import CapacitorSQLiteKyselyDialect from 'capacitor-sqlite-kysely'
Set 'encryption: true' instead of 'mode: 'encryption''.
Use alphanumeric and underscore only for database names.
Upgrade Kysely to >=0.26.0
Run npm install capacitor-sqlite-kysely kysely @capacitor-community/sqlite @capacitor/core and set 'esModuleInterop': true in tsconfig.json.
Use import CapacitorSQLiteKyselyDialect from 'capacitor-sqlite-kysely'
Use import { Kysely } from 'kysely'