MySQL 26.10.0
Source Code Documentation
hm::Query Struct Reference

#include <health_monitor_query.h>

Public Member Functions

 Query ()=default
 
 Query (const char *query_text)
 
 Query (std::string query_text)
 
 Query (std::string query_title, std::string query_text)
 
int run (Result_Set &r) const
 Default way to execute queries. More...
 

Public Attributes

const std::string title
 
const std::string query
 

Constructor & Destructor Documentation

◆ Query() [1/4]

hm::Query::Query ( )
default

◆ Query() [2/4]

hm::Query::Query ( const char *  query_text)
inlineexplicit

◆ Query() [3/4]

hm::Query::Query ( std::string  query_text)
inlineexplicit

◆ Query() [4/4]

hm::Query::Query ( std::string  query_title,
std::string  query_text 
)
inline

Member Function Documentation

◆ run()

int hm::Query::run ( Result_Set &  result_set) const

Default way to execute queries.

Will execute the query as SQL.

Parameters
[out]result_setResult set returned to caller
Returns
0 success, 1 failure

Member Data Documentation

◆ query

const std::string hm::Query::query

◆ title

const std::string hm::Query::title

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