Skip to content

@xtandard/entitlements/storage/sqlite

SQLite state storage on bun:sqlite (Bun only, zero npm deps), with single-statement compare-and-swap.

import { … } from "@xtandard/entitlements/storage/sqlite";
Name Summary
createSqliteStorage Create a SQLite-backed SqliteEntitlementsStorage. The table is created on first use.
Name Summary
SqliteEntitlementsStorage A compare-and-swap capable storage backed by SQLite, plus close().
SqliteStorageOptions Options for createSqliteStorage. table defaults to "xtandard_entitlements_kv".