MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
mrs::database::QueryRouterInfo Class Reference

#include <query_router_info.h>

Inheritance diagram for mrs::database::QueryRouterInfo:
[legend]

Public Member Functions

std::optional< uint64_t > find_existing_router_instances (MySQLSession *session, const std::string &router_name, const std::string &address)
 

Private Member Functions

void on_row (const ResultRow &r) override
 
- Private Member Functions inherited from mrs::database::QueryRaw
virtual ~QueryRaw ()=default
 
virtual void execute (MySQLSession *session)
 
virtual void query (MySQLSession *session, const std::string &q)
 
virtual void prepare_and_execute (MySQLSession *session, const std::string &q, std::vector< MYSQL_BIND > pt, const OnResultSetEnd &on_resultset_end)
 
std::unique_ptr< MySQLSession::ResultRowquery_one (MySQLSession *session)
 
std::unique_ptr< MySQLSession::ResultRowquery_one (MySQLSession *session, const std::string &q)
 
virtual void on_metadata (unsigned number, MYSQL_FIELD *fields)
 

Private Attributes

std::optional< uint64_t > id_
 
- Private Attributes inherited from mrs::database::QueryRaw
mysqlrouter::sqlstring query_
 
std::optional< std::string > sqlstate_
 
MYSQL_FIELDmetadata_ {nullptr}
 
unsigned num_of_metadata_ {0}
 

Additional Inherited Members

- Private Types inherited from mrs::database::QueryRaw
using MySQLSession = mysqlrouter::MySQLSession
 
using Row = MySQLSession::Row
 
using ResultRow = MySQLSession::ResultRow
 
using OnResultSetEnd = MySQLSession::OnResultSetEnd
 

Member Function Documentation

◆ find_existing_router_instances()

std::optional< uint64_t > mrs::database::QueryRouterInfo::find_existing_router_instances ( MySQLSession session,
const std::string &  router_name,
const std::string &  address 
)

◆ on_row()

void mrs::database::QueryRouterInfo::on_row ( const ResultRow r)
overrideprivatevirtual

Reimplemented from mrs::database::QueryRaw.

Member Data Documentation

◆ id_

std::optional<uint64_t> mrs::database::QueryRouterInfo::id_
private

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