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

#include <query_statistics.h>

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

Public Types

using Snapshot = observability::EntitiesManager::Snapshot
 

Public Member Functions

virtual void update_statistics (MySQLSession *session, uint64_t router_id, uint64_t timespan, const Snapshot &snap)
 

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
 
- 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_row (const ResultRow &r)
 
virtual void on_metadata (unsigned number, MYSQL_FIELD *fields)
 
- Private Attributes inherited from mrs::database::QueryRaw
mysqlrouter::sqlstring query_
 
std::optional< std::string > sqlstate_
 
MYSQL_FIELDmetadata_ {nullptr}
 
unsigned num_of_metadata_ {0}
 

Member Typedef Documentation

◆ Snapshot

Member Function Documentation

◆ update_statistics()

void mrs::database::QueryStatistics::update_statistics ( MySQLSession session,
uint64_t  router_id,
uint64_t  timespan,
const Snapshot snap 
)
virtual

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