Expand description
The one rule for turning a scalar into a raw KV body.
A KV row written through the single-value SQL column, or through RESP
SET, stores its scalar as raw bytes rather than a msgpack map. The SQL
lowering and every KV read-modify-write encode through this function, so
a merged row re-encodes byte-for-byte as a fresh insert of the same
scalar.
Structs§
- NotScalar
- The value is not a scalar, so it has no raw KV body form.
Functions§
- scalar_
to_ raw_ bytes - Raw KV body bytes for a scalar.