@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";Functions
Section titled “Functions”| 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. |
Type aliases
Section titled “Type aliases”| 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". |