MySQL 8.3.0
Source Code Documentation
Mysql::Tools::Base::Show_variable_query_extractor Class Reference

Extracts the value of server variable. More...

#include <show_variable_query_extractor.h>

Static Public Member Functions

static int64 get_variable_value (Mysql_query_runner *query_runner, std::string variable, std::string &value, bool &exists)
 Extract the value of server variable. More...
 

Private Member Functions

 Show_variable_query_extractor ()
 
int64 extract_variable (const Mysql_query_runner::Row &result_row)
 Result row callback to be used in query runner. More...
 

Private Attributes

std::string m_extracted_variable
 Temporary placeholder for extracted value. More...
 
bool m_exists
 Temporary placeholder for value received flag. More...
 

Detailed Description

Extracts the value of server variable.

Constructor & Destructor Documentation

◆ Show_variable_query_extractor()

Show_variable_query_extractor::Show_variable_query_extractor ( )
private

Member Function Documentation

◆ extract_variable()

int64 Show_variable_query_extractor::extract_variable ( const Mysql_query_runner::Row result_row)
private

Result row callback to be used in query runner.

◆ get_variable_value()

int64 Show_variable_query_extractor::get_variable_value ( Mysql_query_runner query_runner,
std::string  variable,
std::string &  value,
bool &  exists 
)
static

Extract the value of server variable.

Parameters
[in]query_runnerMySQL query runner to use.
[in]variableName of variable to get value of.
[out]valuereference to String to store variable value to.
[out]existsreference to bool to store if variable was found.
Returns
nonzero if error was encountered.

Member Data Documentation

◆ m_exists

bool Mysql::Tools::Base::Show_variable_query_extractor::m_exists
private

Temporary placeholder for value received flag.

◆ m_extracted_variable

std::string Mysql::Tools::Base::Show_variable_query_extractor::m_extracted_variable
private

Temporary placeholder for extracted value.


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