Skip to content

createLibsqlCounterStore

function createLibsqlCounterStore(options): LibsqlCounterStore;

Defined in: src/counters/libsql.ts:49

Create a libSQL/Turso counter store. The table is created on first use.

Parameter Type
options LibsqlCounterStoreOptions

LibsqlCounterStore

import { createLibsqlCounterStore } from "@xtandard/entitlements/counters/libsql";
const counters = createLibsqlCounterStore({
url: process.env.TURSO_DATABASE_URL!,
authToken: process.env.TURSO_AUTH_TOKEN,
});