Skip to content

@xtandard/entitlements/counters/sqlite

SQLite counter store on bun:sqlite (Bun only): one upsert statement per atomic add (ADR 0004).

import { … } from "@xtandard/entitlements/counters/sqlite";
Name Summary
createSqliteCounterStore Create a bun:sqlite counter store.
Name Summary
SqlCounterStore A CounterStore with keys and a sweep of expired rows.
SqliteCounterStore A SQLite SqlCounterStore plus close() (closes a database this store opened).
SqliteCounterStoreOptions Options for createSqliteCounterStore.