Skip to content

mysqlCountersTable

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

Defined in: src/drizzle/mysql.ts:67

Build the MySQL mysqlTable for the counter store: key varchar … COLLATE utf8mb4_bin PRIMARY KEY, value double NOT NULL DEFAULT 0, applied double NOT NULL DEFAULT 0, expires_at bigint (unix ms). The table name defaults to "xtandard_entitlements_counters".

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

DrizzleCounterTable