Skip to content

SqliteCounterStoreOptions

Defined in: src/counters/sqlite.ts:21

Options for createSqliteCounterStore.

Property Type Description Defined in
database? Database An existing bun:sqlite Database instance to use instead of opening one. src/counters/sqlite.ts:25
now? () => number Clock (unix ms) for expiry hints and claim TTLs. Default Date.now. src/counters/sqlite.ts:29
path? string File path for the database. Default ":memory:". Ignored when database is given. src/counters/sqlite.ts:23
table? string Table name (default "xtandard_entitlements_counters"). src/counters/sqlite.ts:27