Skip to content

sqliteCountersTable

function sqliteCountersTable(name?, opts?): DrizzleCounterTable;

Defined in: src/drizzle/sqlite.ts:60

Build the SQLite sqliteTable for the counter store: key text PRIMARY KEY, value real NOT NULL DEFAULT 0, applied real NOT NULL DEFAULT 0, expires_at integer (unix ms). The table name defaults to "xtandard_entitlements_counters".

Parameter Type Default value
name? string "xtandard_entitlements_counters"
opts? SqliteKvTableOptions undefined

DrizzleCounterTable