MySQL  8.0.21
Source Code Documentation
acl_table Namespace Reference

Classes

class  Acl_table
 Base class to handle ACL table manipulation. More...
 
class  Acl_table_user_reader
 mysql.user table reader. More...
 
class  Acl_table_user_writer
 
class  Acl_table_user_writer_status
 mysql.user table writer. More...
 
struct  Password_lock
 
class  Pod_user_what_to_update
 

Typedefs

typedef int Table_op_error_code
 
using acl_table_user_writer_status = std::pair< Table_op_error_code, struct timeval >
 

Enumerations

enum  Acl_table_op_status { Acl_table_op_status::OP_ERROR_CRITICAL = 0, Acl_table_op_status::OP_OK, Acl_table_op_status::OP_ERROR_ROW }
 
enum  Acl_table_operation { Acl_table_operation::OP_INSERT = 0, Acl_table_operation::OP_UPDATE, Acl_table_operation::OP_DELETE, Acl_table_operation::OP_READ }
 
enum  User_attribute_type {
  User_attribute_type::ADDITIONAL_PASSWORD = 0, User_attribute_type::RESTRICTIONS, User_attribute_type::PASSWORD_LOCKING, User_attribute_type::METADATA,
  User_attribute_type::COMMENT
}
 

Variables

static std::map< const User_attribute_type, const std::string > attribute_type_to_str
 Keys used in mysql.user.user_attributes. More...
 
const ulong USER_ATTRIBUTE_NONE = 0L
 
const ulong USER_ATTRIBUTE_RETAIN_PASSWORD = (1L << 0)
 
const ulong USER_ATTRIBUTE_DISCARD_PASSWORD = (1L << 1)
 
const ulong USER_ATTRIBUTE_RESTRICTIONS = (1L << 3)
 
const ulong USER_ATTRIBUTE_FAILED_LOGIN_ATTEMPTS = (1L << 4)
 
const ulong USER_ATTRIBUTE_PASSWORD_LOCK_TIME = (1L << 5)
 

Typedef Documentation

◆ acl_table_user_writer_status

using acl_table::acl_table_user_writer_status = typedef std::pair<Table_op_error_code, struct timeval>

◆ Table_op_error_code

Enumeration Type Documentation

◆ Acl_table_op_status

Enumerator
OP_ERROR_CRITICAL 
OP_OK 
OP_ERROR_ROW 

◆ Acl_table_operation

Enumerator
OP_INSERT 
OP_UPDATE 
OP_DELETE 
OP_READ 

◆ User_attribute_type

Enumerator
ADDITIONAL_PASSWORD 
RESTRICTIONS 
PASSWORD_LOCKING 
METADATA 
COMMENT 

Variable Documentation

◆ attribute_type_to_str

std::map<const User_attribute_type, const std::string> acl_table::attribute_type_to_str
static
Initial value:
= {
{User_attribute_type::ADDITIONAL_PASSWORD, consts::additional_password},
{User_attribute_type::RESTRICTIONS, consts::Restrictions},
{User_attribute_type::PASSWORD_LOCKING, consts::Password_locking},
const std::string Password_locking("Password_locking")
for password locking
const std::string json_metadata_tag("metadata")
metadata tag
#define METADATA(key, value)
Adds a Service requirement with a pointer to placeholder to the list of components.
Definition: component_implementation.h:304
#define COMMENT
Definition: azio.cc:39
const std::string Restrictions("Restrictions")
For partial revokes.
const std::string additional_password("additional_password")
For secondary password.
const std::string json_comment_tag("comment")
comment tag

Keys used in mysql.user.user_attributes.

◆ USER_ATTRIBUTE_DISCARD_PASSWORD

const ulong acl_table::USER_ATTRIBUTE_DISCARD_PASSWORD = (1L << 1)

◆ USER_ATTRIBUTE_FAILED_LOGIN_ATTEMPTS

const ulong acl_table::USER_ATTRIBUTE_FAILED_LOGIN_ATTEMPTS = (1L << 4)

◆ USER_ATTRIBUTE_NONE

const ulong acl_table::USER_ATTRIBUTE_NONE = 0L

◆ USER_ATTRIBUTE_PASSWORD_LOCK_TIME

const ulong acl_table::USER_ATTRIBUTE_PASSWORD_LOCK_TIME = (1L << 5)

◆ USER_ATTRIBUTE_RESTRICTIONS

const ulong acl_table::USER_ATTRIBUTE_RESTRICTIONS = (1L << 3)

◆ USER_ATTRIBUTE_RETAIN_PASSWORD

const ulong acl_table::USER_ATTRIBUTE_RETAIN_PASSWORD = (1L << 0)