kysely-bun-worker
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

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
}

Package Sidebar

Install

npm i kysely-bun-worker

Weekly Downloads

1,207

Version

0.6.0

License

MIT

Unpacked Size

13.9 kB

Total Files

11

Last publish

Collaborators

  • subframe7536