Skip to content

createSqliteStorage

function createSqliteStorage(options?): SqliteWebhooksStorage;

Defined in: src/storage/sqlite.ts:40

Create a SQLite-backed storage. Requires the Bun runtime (bun:sqlite).

Parameter Type
options? SqliteStorageOptions

SqliteWebhooksStorage

import { createSqliteStorage } from "@xtandard/webhooks/storage/sqlite";
// File-backed (persists across restarts):
const storage = createSqliteStorage({ path: "./webhooks.sqlite" });
// In-memory (reset each run, useful for tests):
// const storage = createSqliteStorage({ path: ":memory:" });