LibSQLHranaTransport (libsql/hrana-transport.ts)

libredb-studio · src/lib/db/providers/sql/libsql/hrana-transport.ts · typescript · MIT
database

* libSQL Hrana HTTP transport (issue #424 Phase 5) The only implementation of the `LibSQLTransport` seam, and the only file in the provider allowed to know how Hrana encodes a request or a result: its `/v2/pipeline` endpoint, its request/response envelope, its `baton` and its `{

// Source: https://github.com/libredb/libredb-studio | License: MIT | Copyright 2025 SEKOYA GRUP BİLİŞİM VE TEKNOLOJİ LİMİTED ŞİRKETİ
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * libSQL Hrana HTTP transport (issue #424 Phase 5)
 *
 * The only implementation of the `LibSQLTransport` seam, and the only file in the
 * provider allowed to know how Hrana encodes a request or a result: its
 * `/v2/pipeline` endpoint, its request/response envelope, its `baton` and its
 * `{ type, value }` value encoding. `seam-guard.test.ts` fails the build the
 * moment any of that vocabulary appears elsewhere in the directory, which is what
 * keeps "a WebSocket or embedded implementation is one new file" true rather than
 * aspirational.
 *
 * Zero runtime dependency: the statement i

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key