Skip to main content

split_legacy_property_encoding

Function split_legacy_property_encoding 

Source
pub fn split_legacy_property_encoding(
    property: &str,
) -> (&str, Option<IndexKindSpec>)
Expand description

Decode a legacy IndexDef.property string: split the value catalog_create_index (and the constraint-backed index path) into its props head and index kind. A bare property name (no #) is its own head with no kind. The single decoder for this format — every reader of IndexDef.property goes through here.