A Kysely dialect and driver for PostgreSQL that leverages Bun's native SQL capabilities. Current stable version is 0.2.0, released with monthly cadence. Provides a `BunSqlDialect` for Kysely to execute queries using `Bun.sql` instead of a traditional pg driver, offering better performance and concurrency via Bun's built-in connection pooling. Requires Bun >=1.3.0 and Kysely ^0.28.8. Key differentiator: eliminates need for separate pg client in Bun applications.
npm install kysely-bun-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example connecting to PostgreSQL, querying a table, and closing the connection.
Install Bun 1.3.0+.
Use Kysely ^0.28.8.
Use Bun runtime only; avoid mixing with pg driver.
Use: import { BunSqlDialect } from 'kysely-bun-sql' (note spelling: 'BunSqlDialect' not 'BunSQLDialect').Run the script with `bun run`.
Run: bun add kysely-bun-sql and also add peer dependency: bun add kysely@0.28.8