mysqladm::core::database_privileges

Function diff_privileges

Source
pub fn diff_privileges(
    from: &[DatabasePrivilegeRow],
    to: &[DatabasePrivilegeRow],
) -> BTreeSet<DatabasePrivilegesDiff>
Expand description

This function calculates the differences between two sets of database privileges. It returns a set of DatabasePrivilegesDiff that can be used to display or apply a set of privilege modifications to the database.