Skip to main content

parse_legacy_vector_inner

Function parse_legacy_vector_inner 

Source
pub fn parse_legacy_vector_inner<'a, T, E>(
    s: &'a str,
    gen_elem: impl FnMut(Cow<'a, str>) -> Result<T, E>,
) -> Result<Vec<T>, String>
where E: ToString,
Expand description

Parses PostgreSQL’s legacy whitespace-separated vector syntax (used in Materialize for int2vector). Unlike parse_array, this grammar has no token for NULL, which is why int2vector cannot represent NULL elements. See crate::scalar::Int2Vector.