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.