Skip to main content

pk_lit

Function pk_lit 

Source
fn pk_lit(desc: &RelationDesc) -> Lit
Expand description

Extract all keys from a RelationDesc and return a Lit::Json with shape: {"primary_key": ["id"], "alternate_keys": [["oid"]]}. primary_key is the first declared key; alternate_keys contains any additional unique keys. Returns Lit::Null if no keys are defined.