kysely-bun-worker
v0.6.3
Published
kysely dialect for bun:sqlite, running in worker
Downloads
6,769
Maintainers
Readme
kysely-bun-worker
kysely dialect for bun:sqlite
, run sql in worker
Install
bun install kysely kysely-bun-worker
Config
export type BunWorkerDialectConfig = {
/**
* db file path
*
* @default ':memory:'
*/
url?: string
onCreateConnection?: (connection: DatabaseConnection) => Promisable<void>
/**
* use bun:sqlite's built-in statment cache
* @see https://bun.sh/docs/api/sqlite#query
*/
cacheStatment?: boolean
/**
* custom worker, default is a worker that use bun:sqlite
*/
worker?: Worker
}