Skip to main content

jsonb_datum_to_acl_mode

Function jsonb_datum_to_acl_mode 

Source
fn jsonb_datum_to_acl_mode(d: Datum<'_>) -> Result<AclMode, String>
Expand description

Decodes a JSONB object of shape {"bitflags": <u64>} into an AclMode.

Shared decoder for parse_catalog_privileges (which embeds the object as the acl_mode field of each privilege) and parse_catalog_acl_mode (which receives the object at the top level).