Skip to content

pgCountersTable

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

Defined in: src/drizzle/pg.ts:73

Build the Drizzle pgTable for the counter store: key text COLLATE "C" PRIMARY KEY, value double precision NOT NULL DEFAULT 0, applied double precision NOT NULL DEFAULT 0, expires_at bigint (unix ms). Required by createDrizzleCounterStore. The table name defaults to "xtandard_entitlements_counters".

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

DrizzleCounterTable