#include <functional>
#include <string>
#include <unordered_set>
#include "lex_string.h"
#include "sql/auth/auth_common.h"
Go to the source code of this file.
◆ Dynamic_privilege_register
◆ get_dynamic_privilege_register()
This function returns a pointer to a global variable allocated on the heap.
- Returns
- A pointer to the dynamic privilege register.
◆ iterate_all_dynamic_privileges()
bool iterate_all_dynamic_privileges |
( |
THD * |
thd, |
|
|
std::function< bool(const char *)> |
action |
|
) |
| |
◆ modify_dynamic_privileges_in_table()
bool modify_dynamic_privileges_in_table |
( |
THD * |
thd, |
|
|
TABLE * |
table, |
|
|
const Auth_id_ref & |
auth_id, |
|
|
const LEX_CSTRING & |
privilege, |
|
|
bool |
with_grant_option, |
|
|
bool |
delete_option |
|
) |
| |
Delete or insert a row in the mysql.dynamic_privilege table.
- Parameters
-
thd | Thread handler |
table | The opened table to be modified |
auth_id | Target authorization ID |
privilege | Privilege object ID |
with_grant_option | Flag indicating if the grant option is set |
delete_option | Flag indicating if this is an insert or delete |
If an error has occurred the DA is not set.
- See also
- Update_dynamic_privilege_table
- Returns
- Error state
- Return values
-
true | An error occurred |
false | Success |
◆ populate_dynamic_privilege_caches()
bool populate_dynamic_privilege_caches |
( |
THD * |
thd, |
|
|
Table_ref * |
tablelst |
|
) |
| |
Given an open table handler this function refresh the list of dynamic privilege grants by reading the dynamic_privilege table.
If an error is raised, this function will set the DA.
- Parameters
-
thd | The thread handle |
tablelst | An handle to an open table |
- Returns
- Error state
- Return values
-
true | An error occurred. |
false | Success |
◆ register_dynamic_privilege_impl()
void register_dynamic_privilege_impl |
( |
const std::string & |
priv | ) |
|