Skip to main content

encode

Function encode 

Source
pub fn encode(result: &AskResult) -> AskRow
Expand description

Encode an AskResult as the single-row PG-wire result set.

Deterministic: re-running on byte-equal input is byte-equal output (pinned by encode_is_deterministic_across_calls). Required by the ASK determinism contract (#400) and by the cache-hit path (#403) where the cached PG row must equal the freshly-encoded one.