Kysely dialect for Bun's built-in SQLite module (bun:sqlite). Current version 0.4.0, requires Bun >=1.1.31 and Kysely ^0.28.2. Provides a thin integration layer leveraging Bun's native SQLite driver for zero-dependency SQLite access. Unlike better-sqlite3-based dialects, this avoids native addon compilation and uses Bun's built-in module. Includes TypeScript types. Released sparsely with minor updates.
npm install kysely-bun-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an in-memory SQLite database using Bun's built-in driver and Kysely with the kysely-bun-sqlite dialect, defines a table, inserts a row, and queries it.
Update Bun to latest version.
Upgrade Kysely to 0.28.2 or later.
Use import syntax. In Bun, ESM is default.
Pass `new Database(...)` from 'bun:sqlite', not from any other SQLite package.
Use `new BunSqliteDialect({ database: yourDb })`.Run `bun add kysely-bun-sqlite` (not npm or yarn).
Use `import { BunSqliteDialect } from 'kysely-bun-sqlite'`Create a `BunSqliteDialect` instance with a `database` property and pass it. See quickstart.
Install kysely: `bun add kysely`