
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
kysely-bun-worker
Advanced tools
kysely dialect for bun:sqlite, run sql in worker
From v0.7.0, this dialect requires Bun@^1.1.14
bun install kysely kysely-bun-worker
import { BunWorkerDialect } from 'kysely-bun-worker'
const dialect = new BunWorkerDialect({
url: ':memory:',
})
in worker.ts
import { createOnMessageCallback, defaultCreateDatabaseFn } from 'kysely-bun-worker'
createOnMessageCallback(
async (...args) => {
const db = defaultCreateDatabaseFn(...args)
db.loadExtension(/* ... */)
return db
}
)
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
}
FAQs
kysely dialect for bun:sqlite, running in worker
The npm package kysely-bun-worker receives a total of 1,241 weekly downloads. As such, kysely-bun-worker popularity was classified as popular.
We found that kysely-bun-worker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.