MySQL 9.1.0
Source Code Documentation
Acl_table_intact Class Reference

Class to validate the flawlessness of ACL table before performing ACL operations. More...

#include <sql_user_table.h>

Inheritance diagram for Acl_table_intact:
[legend]

Public Member Functions

 Acl_table_intact (THD *c_thd, enum loglevel log_level=ERROR_LEVEL)
 
bool check (TABLE *table, ACL_TABLES acl_table)
 Checks whether an ACL table is intact. More...
 
- Public Member Functions inherited from System_table_intact
 System_table_intact (THD *thd, enum loglevel log_level=ERROR_LEVEL)
 
THDthd ()
 
- Public Member Functions inherited from Table_check_intact
 Table_check_intact ()
 
virtual ~Table_check_intact ()=default
 
bool check (THD *thd, TABLE *table, const TABLE_FIELD_DEF *table_def)
 Checks whether a table is intact. More...
 

Static Private Attributes

static const TABLE_FIELD_DEF mysql_acl_table_defs []
 keep in sync with ACL_TABLES More...
 

Additional Inherited Members

- Protected Member Functions inherited from System_table_intact
void report_error (uint code, const char *fmt,...) override
 
- Protected Attributes inherited from Table_check_intact
bool has_keys
 

Detailed Description

Class to validate the flawlessness of ACL table before performing ACL operations.

Constructor & Destructor Documentation

◆ Acl_table_intact()

Acl_table_intact::Acl_table_intact ( THD c_thd,
enum loglevel  log_level = ERROR_LEVEL 
)
inline

Member Function Documentation

◆ check()

bool Acl_table_intact::check ( TABLE table,
ACL_TABLES  acl_table 
)
inline

Checks whether an ACL table is intact.

Works in conjunction with mysql_acl_table_defs and Table_check_intact::check()

Parameters
tableTable to check.
acl_tableACL Table "id"
Return values
falseOK
trueThere was an error.

Member Data Documentation

◆ mysql_acl_table_defs

const TABLE_FIELD_DEF Acl_table_intact::mysql_acl_table_defs
staticprivate
Initial value:
= {
@ MYSQL_DYNAMIC_PRIV_FIELD_COUNT
Definition: auth_common.h:367
@ MYSQL_COLUMNS_PRIV_FIELD_COUNT
Definition: auth_common.h:322
@ MYSQL_PROCS_PRIV_FIELD_COUNT
Definition: auth_common.h:311
@ MYSQL_ROLE_EDGES_FIELD_COUNT
Definition: auth_common.h:343
@ MYSQL_DB_FIELD_COUNT
Definition: auth_common.h:233
@ MYSQL_PASSWORD_HISTORY_FIELD_COUNT
Definition: auth_common.h:359
@ MYSQL_DEFAULT_ROLES_FIELD_COUNT
Definition: auth_common.h:351
@ MYSQL_TABLES_PRIV_FIELD_COUNT
Definition: auth_common.h:334
@ MYSQL_PROXIES_PRIV_FIELD_COUNT
Definition: auth_common.h:299
@ MYSQL_USER_FIELD_COUNT
Definition: auth_common.h:288
static const TABLE_FIELD_TYPE mysql_proxies_priv_table_fields[MYSQL_PROXIES_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:323
static const TABLE_FIELD_TYPE mysql_db_table_fields[MYSQL_DB_FIELD_COUNT]
Definition: sql_user_table.cc:111
static const TABLE_FIELD_TYPE mysql_tables_priv_table_fields[MYSQL_TABLES_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:394
static const TABLE_FIELD_TYPE mysql_user_table_fields[MYSQL_USER_FIELD_COUNT]
Definition: sql_user_table.cc:175
static const TABLE_FIELD_TYPE mysql_procs_priv_table_fields[MYSQL_PROCS_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:347
static const TABLE_FIELD_TYPE mysql_dynamic_priv_table_fields[MYSQL_DYNAMIC_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:469
static const TABLE_FIELD_TYPE mysql_password_history_table_fields[MYSQL_PASSWORD_HISTORY_FIELD_COUNT]
Definition: sql_user_table.cc:454
static const TABLE_FIELD_TYPE mysql_default_roles_table_fields[MYSQL_DEFAULT_ROLES_FIELD_COUNT]
Definition: sql_user_table.cc:439
static const TABLE_FIELD_TYPE mysql_role_edges_table_fields[MYSQL_ROLE_EDGES_FIELD_COUNT]
Definition: sql_user_table.cc:421
static const TABLE_FIELD_TYPE mysql_columns_priv_table_fields[MYSQL_COLUMNS_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:372

keep in sync with ACL_TABLES


The documentation for this class was generated from the following files: