Expand description
Msgpack scalar writers for constructing response messages, aggregate results, projections, and other output data — all in raw msgpack without intermediary types.
These are the building blocks for zero-serialization response construction.
Follow the timeseries ingest pattern: SqlValue → row_to_msgpack() at ingress,
raw msgpack throughout, msgpack_to_json_string() at outermost pgwire/HTTP layer.
Functions§
- build_
str_ map - Build a simple msgpack map from string key-value pairs.
- inject_
str_ field - Inject a string field into a msgpack map without full decode.
- merge_
fields - Merge field updates into a msgpack map without full decode.
- write_
array_ header - Write a msgpack array header.
- write_
bin - Write a msgpack binary blob (bin 8/16/32).
- write_
bool - Write a msgpack boolean.
- write_
f64 - Write a msgpack float64.
- write_
i64 - Write a msgpack integer using the most compact encoding.
- write_
kv_ bool - Write a key-value pair (string key, bool value).
- write_
kv_ f64 - Write a key-value pair (string key, f64 value).
- write_
kv_ i64 - Write a key-value pair (string key, i64 value).
- write_
kv_ null - Write a key-value pair (string key, null value).
- write_
kv_ raw - Write a key-value pair (string key, raw msgpack value bytes).
- write_
kv_ str - Write a key-value pair into a msgpack map being built.
- write_
map_ header - Write a msgpack map header.
- write_
null - Write a msgpack null.
- write_
str - Write a msgpack string (header + UTF-8 bytes).