Skip to content

createSqliteStorage

function createSqliteStorage(options?): SqliteEntitlementsStorage;

Defined in: src/storage/sqlite.ts:40

Create a SQLite-backed SqliteEntitlementsStorage. The table is created on first use.

Parameter Type
options? SqliteStorageOptions

SqliteEntitlementsStorage

import { createSqliteStorage } from "@xtandard/entitlements/storage/sqlite";
const storage = createSqliteStorage({ path: "./entitlements.sqlite" });