@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";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createSqliteStorage |
Create a SQLite-backed SqliteEntitlementsStorage. The table is created on first use. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
SqliteEntitlementsStorage |
A compare-and-swap capable storage backed by SQLite, plus close(). |
SqliteStorageOptions |
Options for createSqliteStorage. table defaults to "xtandard_entitlements_kv". |