@xtandard/kit/storage/libsql/internals
@xtandard/kit/storage/libsql/internals — semi-public building blocks of the libSQL driver
(ADR 0004): the lazy connection with one-time, retried DDL (libsqlConnection, also the ready
plumbing for product tables such as au’s event log), the executor adapter and the shared SQLite KV
core. Covered by the versioning policy like any export; changes are a MINOR bump.
import { … } from "@xtandard/kit/storage/libsql/internals";Functions
Section titled “Functions”| Name | Summary |
|---|---|
libsqlConnection |
Build a LibsqlConnection that runs ddl (in order) once before the first use. A failed connect or DDL is not cached: the next get() retries. Products add their own tables by passing extra statements (au’s event log). |
libsqlExecutor |
Adapt a libSQL client to the positional-args SqliteExecutor of the SQLite core. |
sqliteKvSchema |
The DDL for a KV table: key TEXT PRIMARY KEY, value TEXT NOT NULL (validates table). |
sqliteKvStorage |
Build a compare-and-swap capable storage over a SQLite-dialect executor. exec resolves the executor before every operation (lazy connect + DDL); the core issues no DDL of its own. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
LibsqlClientLike |
Minimal structural view of the @libsql/client surface the drivers use. |
LibsqlConnection |
A lazily created libSQL client whose DDL runs once (semi-public, ADR 0004). |
SqliteExecutor |
The tiny async SQL surface the core needs (positional ? parameters). |
SqliteStatement |
One statement for SqliteExecutor.atomic. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
SqliteRow |
One row returned by an executor. |