MySQL 8.3.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:364
@ MYSQL_COLUMNS_PRIV_FIELD_COUNT
Definition: auth_common.h:319
@ MYSQL_PROCS_PRIV_FIELD_COUNT
Definition: auth_common.h:308
@ MYSQL_ROLE_EDGES_FIELD_COUNT
Definition: auth_common.h:340
@ MYSQL_DB_FIELD_COUNT
Definition: auth_common.h:230
@ MYSQL_PASSWORD_HISTORY_FIELD_COUNT
Definition: auth_common.h:356
@ MYSQL_DEFAULT_ROLES_FIELD_COUNT
Definition: auth_common.h:348
@ MYSQL_TABLES_PRIV_FIELD_COUNT
Definition: auth_common.h:331
@ MYSQL_PROXIES_PRIV_FIELD_COUNT
Definition: auth_common.h:296
@ MYSQL_USER_FIELD_COUNT
Definition: auth_common.h:285
static const TABLE_FIELD_TYPE mysql_proxies_priv_table_fields[MYSQL_PROXIES_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:322
static const TABLE_FIELD_TYPE mysql_db_table_fields[MYSQL_DB_FIELD_COUNT]
Definition: sql_user_table.cc:110
static const TABLE_FIELD_TYPE mysql_tables_priv_table_fields[MYSQL_TABLES_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:393
static const TABLE_FIELD_TYPE mysql_user_table_fields[MYSQL_USER_FIELD_COUNT]
Definition: sql_user_table.cc:174
static const TABLE_FIELD_TYPE mysql_procs_priv_table_fields[MYSQL_PROCS_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:346
static const TABLE_FIELD_TYPE mysql_dynamic_priv_table_fields[MYSQL_DYNAMIC_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:468
static const TABLE_FIELD_TYPE mysql_password_history_table_fields[MYSQL_PASSWORD_HISTORY_FIELD_COUNT]
Definition: sql_user_table.cc:453
static const TABLE_FIELD_TYPE mysql_default_roles_table_fields[MYSQL_DEFAULT_ROLES_FIELD_COUNT]
Definition: sql_user_table.cc:438
static const TABLE_FIELD_TYPE mysql_role_edges_table_fields[MYSQL_ROLE_EDGES_FIELD_COUNT]
Definition: sql_user_table.cc:420
static const TABLE_FIELD_TYPE mysql_columns_priv_table_fields[MYSQL_COLUMNS_PRIV_FIELD_COUNT]
Definition: sql_user_table.cc:371

keep in sync with ACL_TABLES


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