MySQL 8.4.2
Source Code Documentation
|
Container of all restrictions for a given user. More...
#include <partial_revokes.h>
Public Member Functions | |
Restrictions () | |
Constructor for Restrictions. More... | |
Restrictions (const Restrictions &)=default | |
Restrictions (Restrictions &&) | |
Move constructor for Restrictions. More... | |
Restrictions & | operator= (const Restrictions &) |
Assignment operator for Restrictions. More... | |
Restrictions & | operator= (Restrictions &&) |
Assignment operator for Restrictions. More... | |
bool | has_more_db_restrictions (const Restrictions &, Access_bitmask) |
~Restrictions () | |
Destructor. More... | |
const DB_restrictions & | db () const |
Get database restrictions. More... | |
void | set_db (const DB_restrictions &db_restrictions) |
Set given database restrictions. More... | |
void | clear_db () |
Clear database restrictions. More... | |
bool | is_empty () const |
Return if restrictions are empty or not. More... | |
Private Attributes | |
DB_restrictions | m_db_restrictions |
Database restrictions. More... | |
Container of all restrictions for a given user.
Each object created in the MEM_ROOT has to be destroyed manually. It will be the client's responsibility that create the objects.
|
explicit |
Constructor for Restrictions.
|
default |
Restrictions::Restrictions | ( | Restrictions && | restrictions | ) |
Move constructor for Restrictions.
Restrictions::~Restrictions | ( | ) |
Destructor.
void Restrictions::clear_db | ( | ) |
Clear database restrictions.
const DB_restrictions & Restrictions::db | ( | ) | const |
Get database restrictions.
bool Restrictions::has_more_db_restrictions | ( | const Restrictions & | other, |
Access_bitmask | access | ||
) |
bool Restrictions::is_empty | ( | ) | const |
Return if restrictions are empty or not.
Restrictions & Restrictions::operator= | ( | const Restrictions & | restrictions | ) |
Assignment operator for Restrictions.
Restrictions & Restrictions::operator= | ( | Restrictions && | restrictions | ) |
Assignment operator for Restrictions.
void Restrictions::set_db | ( | const DB_restrictions & | db_restrictions | ) |
Set given database restrictions.
|
private |
Database restrictions.