Skip to main content

validate_privilege_list

Function validate_privilege_list 

Source
pub fn validate_privilege_list(privilege: &str) -> Result<(), MCPError>
Expand description

Validate a privilege specification for GRANT/REVOKE. Accepts a comma-separated list of known privilege keywords (case-insensitive), e.g. "SELECT, INSERT" or "ALL PRIVILEGES". Rejects anything else so the value can be safely interpolated into the statement.