MySQL 9.1.0
Source Code Documentation
anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler Class Reference

capture the system-variables. More...

Inheritance diagram for anonymous_namespace{classic_lazy_connect.cc}::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, std::optional< std::string > > > 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:687
@ FROM
Definition: sql_yacc.h:250
  • 2 columns (column-names are ignored)
  • multiple rows

Constructor & Destructor Documentation

◆ SelectSessionVariablesHandler()

anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::SelectSessionVariablesHandler ( MysqlRoutingClassicConnectionBase connection)
inline

Member Function Documentation

◆ on_column()

void anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::on_column ( const classic_protocol::message::server::ColumnMeta )
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_column_count()

void anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::on_column_count ( uint64_t  count)
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_error()

void anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::on_error ( const classic_protocol::message::server::Error err)
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_ok()

void anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::on_ok ( const classic_protocol::message::server::Ok )
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_row()

void anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::on_row ( const classic_protocol::message::server::Row row)
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

◆ on_row_end()

void anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::on_row_end ( const classic_protocol::message::server::Eof )
inlineoverridevirtual

Reimplemented from QuerySender::Handler.

Member Data Documentation

◆ col_count_

uint64_t anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::col_count_ {}
private

◆ col_cur_

uint64_t anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::col_cur_ {}
private

◆ connection_

MysqlRoutingClassicConnectionBase* anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::connection_
private

◆ session_variables_

std::deque<std::pair<std::string, std::optional<std::string> > > anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::session_variables_
private

◆ something_failed_

bool anonymous_namespace{classic_lazy_connect.cc}::SelectSessionVariablesHandler::something_failed_ {false}
private

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