Skip to main content

desired_grants

Function desired_grants 

Source
pub fn desired_grants(
    grants: &[GrantPrivilegesStatement<Raw>],
    all_privileges: &[&str],
) -> BTreeSet<(String, String)>
Expand description

Extract (grantee, privilege_type) pairs from parsed GRANT statements.

Expands ALL privileges based on all_privileges (the set of privileges that ALL maps to for the object type).