Skip to content

@xtandard/kit/storage/sqlite

@xtandard/kit/storage/sqlite — SQLite storage on bun:sqlite (Bun only, zero npm deps), with single-statement compare-and-swap. bun:sqlite is loaded on first use, so importing this subpath works under any runtime.

import { … } from "@xtandard/kit/storage/sqlite";
Name Summary
createSqliteStorage Create a SQLite-backed storage. Requires the Bun runtime once used.
Name Summary
SqliteKvStorage A compare-and-swap capable storage backed by SQLite, plus close().
SqliteStorageOptions Options for createSqliteStorage.