Function mz_repr::adt::jsonb::pack_dict

source ·
fn pack_dict<'a, 'scratch>(
    packer: &mut RowPacker<'_>,
    scratch: VecStack<'scratch, DictEntry<'a>>,
    entries: &'a [Command<'a>]
)
Expand description

Packs a sequence of (key, val) pairs as an ordered dictionary.

The keys are required to be Command::String variants, and the entries in the dictionary are sorted by these strings. Multiple values for the same key are detected and only the last value is kept.