@xtandard/entitlements/storage/libsql
libSQL / Turso state storage over @libsql/client (remote, embedded replica
or local file), with single-statement compare-and-swap.
import { … } from "@xtandard/entitlements/storage/libsql";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createLibsqlStorage |
Create a libSQL/Turso-backed LibsqlEntitlementsStorage. The table is created on first use; connection (when constructed from url) is lazy and shared. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
LibsqlEntitlementsStorage |
A compare-and-swap capable storage backed by libSQL/Turso, plus close(). |
LibsqlStorageOptions |
Options for createLibsqlStorage. table defaults to "xtandard_entitlements_kv". |