A Kysely dialect for Expo SQLite that bridges the Kysely query builder with SQLite databases in React Native/Expo applications. Current stable version is 0.3.0. This dialect supports modern Expo SDK and provides type-safe SQL query building, pragmatic defaults for performance (WAL mode, synchronous, foreign keys), and features like change listeners and connection callbacks. It requires peer dependencies expo-sqlite >=13.0.0, kysely >=0.28.0, expo-modules-core, and react-native-web >=0.19.0. Key differentiator: integrates Kysely's type-safe SQL builder into Expo's SQLite API, enabling compile-time query validation with full TypeScript support.
npm install kysely-expo-sqlite-dialectNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Kysely instance with Expo SQLite dialect and demonstrates a basic query to fetch all users.
Set journal_mode to 'DELETE' or conditionally set it only on iOS/Android using Platform.OS.
Ensure expo-sqlite is version 13.0.0 or later in your package.json.
Update kysely to version 0.28.0 or later.
Use import { ExpoSQLiteDialect } from 'kysely-expo-sqlite-dialect'.Use with caution; only enable if you need reactive queries.
Monitor changelog for updates; avoid relying on it in critical code.
Run: npm install kysely-expo-sqlite-dialect kysely expo-sqlite
Ensure all peer dependencies are installed: expo-sqlite, kysely, and expo-modules-core. Then verify dialect options are passed correctly.
Execute CREATE TABLE statements via db.schema.createTable(...).execute() before running queries.
Change to: import { ExpoSQLiteDialect } from 'kysely-expo-sqlite-dialect'