MySQL 9.1.0
Source Code Documentation
|
#include <set_system_variable.h>
Public Types | |
enum | System_variable { VAR_READ_ONLY , VAR_SUPER_READ_ONLY , VAR_OFFLINE_MODE , VAR_GROUP_REPLICATION_SINGLE_PRIMARY_MODE , VAR_GROUP_REPLICATION_ENFORCE_UPDATE_EVERYWHERE_CHECKS } |
Public Member Functions | |
Set_system_variable_parameters (System_variable variable, const std::string &value, const std::string &type, const std::string &reason) | |
Set_system_variable_parameters constructor. More... | |
virtual | ~Set_system_variable_parameters () |
int | get_error () |
Get value for class private member error. More... | |
void | set_error (int error) |
Set value for class private member error. More... | |
Set_system_variable_parameters::System_variable | get_variable () |
Get value for class private member variable. More... | |
Public Member Functions inherited from Mysql_thread_body_parameters | |
void * | operator new (size_t size, const std::nothrow_t &) noexcept |
void | operator delete (void *ptr, const std::nothrow_t &) noexcept |
void * | operator new (size_t size) noexcept |
Allocate memory on the heap with instrumented memory allocation, so that memory consumption can be tracked. More... | |
void | operator delete (void *ptr) noexcept |
Deallocate memory on the heap with instrumented memory allocation, so that memory consumption can be tracked. More... | |
Mysql_thread_body_parameters () | |
virtual | ~Mysql_thread_body_parameters () |
Public Attributes | |
const std::string | m_value {""} |
const std::string | m_type {""} |
const std::string | m_reason {} |
Private Attributes | |
System_variable | m_variable {System_variable::VAR_READ_ONLY} |
int | m_error {1} |
|
inline |
Set_system_variable_parameters constructor.
[in] | variable | The system variable to be set |
[in] | value | The value to be set |
[in] | type | GLOBAL or PERSIST_ONLY |
[in] | reason | Explains why we set OFFLINE_MODE or SUPER_READ_ONLY to ON |
|
inlinevirtual |
int Set_system_variable_parameters::get_error | ( | ) |
Get value for class private member error.
0 | OK |
!=0 | Error |
Set_system_variable_parameters::System_variable Set_system_variable_parameters::get_variable | ( | ) |
Get value for class private member variable.
void Set_system_variable_parameters::set_error | ( | int | error | ) |
Set value for class private member error.
[in] | error | Set value of error |
|
private |
const std::string Set_system_variable_parameters::m_reason {} |
const std::string Set_system_variable_parameters::m_type {""} |
const std::string Set_system_variable_parameters::m_value {""} |
|
private |