Expand description
Database privilege operations
This module contains functions for querying, modifying, displaying and comparing database privileges.
A lot of the complexity comes from two core components:
-
The privilege editor that needs to be able to print an editable table of privileges and reparse the content after the user has made manual changes.
-
The comparison functionality that tells the user what changes will be made when applying a set of changes to the list of database privileges.
Functionsยง
- apply_
privilege_ diffs - Uses the result of [
diff_privileges] to modify privileges in the database. - get_
all_ database_ privileges - Get all database + user + privileges pairs that are owned by the current user.
- get_
databases_ privilege_ data - get_
mysql_ ๐row_ priv_ field - unsafe_
apply_ ๐privilege_ diff - unsafe_
get_ ๐database_ privileges - Get all users + privileges for a single database.
- unsafe_
get_ database_ privileges_ for_ db_ user_ pair - Get all users + privileges for a single database-user pair.
- validate_
diff ๐