MySQL 9.1.0
Source Code Documentation
Set_system_variable_parameters Class Reference

#include <set_system_variable.h>

Inheritance diagram for Set_system_variable_parameters:
[legend]

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}
 

Member Enumeration Documentation

◆ System_variable

Enumerator
VAR_READ_ONLY 
VAR_SUPER_READ_ONLY 
VAR_OFFLINE_MODE 
VAR_GROUP_REPLICATION_SINGLE_PRIMARY_MODE 
VAR_GROUP_REPLICATION_ENFORCE_UPDATE_EVERYWHERE_CHECKS 

Constructor & Destructor Documentation

◆ Set_system_variable_parameters()

Set_system_variable_parameters::Set_system_variable_parameters ( System_variable  variable,
const std::string &  value,
const std::string &  type,
const std::string &  reason 
)
inline

Set_system_variable_parameters constructor.

Parameters
[in]variableThe system variable to be set
[in]valueThe value to be set
[in]typeGLOBAL or PERSIST_ONLY
[in]reasonExplains why we set OFFLINE_MODE or SUPER_READ_ONLY to ON

◆ ~Set_system_variable_parameters()

virtual Set_system_variable_parameters::~Set_system_variable_parameters ( )
inlinevirtual

Member Function Documentation

◆ get_error()

int Set_system_variable_parameters::get_error ( )

Get value for class private member error.

Returns
the error value returned
Return values
0OK
!=0Error

◆ get_variable()

Set_system_variable_parameters::System_variable Set_system_variable_parameters::get_variable ( )

Get value for class private member variable.

Returns
System defined to run

◆ set_error()

void Set_system_variable_parameters::set_error ( int  error)

Set value for class private member error.

Parameters
[in]errorSet value of error

Member Data Documentation

◆ m_error

int Set_system_variable_parameters::m_error {1}
private

◆ m_reason

const std::string Set_system_variable_parameters::m_reason {}

◆ m_type

const std::string Set_system_variable_parameters::m_type {""}

◆ m_value

const std::string Set_system_variable_parameters::m_value {""}

◆ m_variable

System_variable Set_system_variable_parameters::m_variable {System_variable::VAR_READ_ONLY}
private

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