Adapts SQL row cell vectors to opaque byte payloads for B-tree storage. Use this to bridge relational data structures with low-level storage engine serialization.
// Source: https://github.com/CodeAbra/iai-personal-memory-engine | License: MIT | Copyright 2026 Areg Noya // Provided via justclaw.it.com; keep this notice with the code. //! The SQL-row ↔ record bridge. //! //! A SQL row is a vector of typed cells ([`lillibrain::Value`]); a stored record //! is the opaque byte payload of a B-tree leaf cell. This module adapts one to //! the other by deferring entirely to the storage layer's serial-type codec — //! it does not re-implement the varint / serial-type logic, which lives in //! `lillibrain::codec` and is property-tested there. //! //! TEXT and BLOB cells round-trip byte-for-byte: the literal surface of a stored //! value is opaque bytes, never trimmed, normalized, or re-encoded. A round trip //! of any cell vector returns an identical vector, ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key