Skip to content

@xtandard/links/storage/libsql

libSQL / Turso storage: createLibsqlStorage() over @libsql/client, for remote, replicated or embedded SQLite-dialect databases, with compare-and-swap.

import { … } from "@xtandard/links/storage/libsql";
Name Summary
createLibsqlStorage Create a libSQL/Turso-backed LibsqlLinksStorage. The table is created on first use (a failed DDL is retried on the next call); connection (when constructed from url) is lazy and shared.
Name Summary
LibsqlLinksStorage A compare-and-swap capable LinksStorage backed by libSQL/Turso, plus close().
LibsqlStorageOptions Options for createLibsqlStorage. table defaults to "xtandard_links_kv".