Skip to main content

Module durable

Module durable 

Source
Expand description

Decoders for values in their durable catalog JSON encoding, the serde shape of the mz-catalog-protos types.

Functionsยง

acl_mode
Converts a catalog JSON-serialized AclMode bitflags object (e.g. {"bitflags": 514}) into an AclMode.
catalog_id
Converts a catalog JSON-serialized ID value into the appropriate string format.
jsonb_datum_to_acl_mode ๐Ÿ”’
Decodes a JSONB object of shape {"bitflags": <u64>} into an AclMode.
jsonb_datum_to_role_id ๐Ÿ”’
Converts a JSONB Datum into a RoleId.
jsonb_datum_to_u64 ๐Ÿ”’
Converts a JSONB Datum into a u64.
privileges
Converts a catalog JSON-serialized privilege array into a list of MzAclItems.