Skip to main content

parse_privilege

Function parse_privilege 

Source
fn parse_privilege(s: &str) -> Option<Privilege>
Expand description

Parse a privilege type string (e.g. "SELECT") into a Privilege enum value.

Returns None for privilege names mz-deploy doesn’t recognize, which can happen if a future Materialize release introduces a new privilege type. Callers should skip unknown privileges rather than fail outright so the CLI keeps working against newer servers.