MySQL 8.0.39
Source Code Documentation
SelectSessionVariablesHandler Class Reference

capture the system-variables. More...

Inheritance diagram for SelectSessionVariablesHandler:
[legend]

Public Member Functions

 SelectSessionVariablesHandler (MysqlRoutingClassicConnectionBase *connection)
 
void on_column_count (uint64_t count) override
 
void on_column (const classic_protocol::message::server::ColumnMeta &) override
 
void on_row (const classic_protocol::message::server::Row &row) override
 
void on_row_end (const classic_protocol::message::server::Eof &) override
 
void on_ok (const classic_protocol::message::server::Ok &) override
 
void on_error (const classic_protocol::message::server::Error &err) override
 
- Public Member Functions inherited from QuerySender::Handler
virtual ~Handler ()=default
 

Private Attributes

uint64_t col_count_ {}
 
uint64_t col_cur_ {}
 
MysqlRoutingClassicConnectionBaseconnection_
 
bool something_failed_ {false}
 
std::deque< std::pair< std::string, Value > > session_variables_
 

Detailed Description

capture the system-variables.

Expects a resultset similar to that of:

SELECT <key>, <value>
FROM performance_schema.session_variables
WHERE VARIABLE_NAME IN ('collation_connection')
@ WHERE
Definition: sql_yacc.h:679
@ FROM
Definition: sql_yacc.h:242
  • 2 columns (column-names are ignored)
  • multiple rows

Constructor & Destructor Documentation

◆ SelectSessionVariablesHandler()

SelectSessionVariablesHandler::SelectSessionVariablesHandler ( MysqlRoutingClassicConnectionBase connection)
inline

Member Function Documentation

◆ on_column()

void SelectSessionVariablesHandler::on_column ( const classic_protocol::message::server::ColumnMeta )
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_column_count()

void SelectSessionVariablesHandler::on_column_count ( uint64_t  count)
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_error()

void SelectSessionVariablesHandler::on_error ( const classic_protocol::message::server::Error err)
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_ok()

void SelectSessionVariablesHandler::on_ok ( const classic_protocol::message::server::Ok )
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_row()

void SelectSessionVariablesHandler::on_row ( const classic_protocol::message::server::Row row)
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_row_end()

void SelectSessionVariablesHandler::on_row_end ( const classic_protocol::message::server::Eof )
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

Member Data Documentation

◆ col_count_

uint64_t SelectSessionVariablesHandler::col_count_ {}
private

◆ col_cur_

uint64_t SelectSessionVariablesHandler::col_cur_ {}
private

◆ connection_

MysqlRoutingClassicConnectionBase* SelectSessionVariablesHandler::connection_
private

◆ session_variables_

std::deque<std::pair<std::string, Value> > SelectSessionVariablesHandler::session_variables_
private

◆ something_failed_

bool SelectSessionVariablesHandler::something_failed_ {false}
private

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