MySQL 9.1.0
Source Code Documentation
Statement_information Class Reference

Statement information. More...

#include <sql_get_diagnostics.h>

Inheritance diagram for Statement_information:
[legend]

Public Member Functions

 Statement_information (List< Statement_information_item > *items)
 Constructor, used to represent the statement information of a GET DIAGNOSTICS statement. More...
 
bool aggregate (THD *thd, const Diagnostics_area *da) override
 Obtain statement information in the context of a Diagnostics Area. More...
 
- Public Member Functions inherited from Diagnostics_information
void set_which_da (Which_area area)
 Set which Diagnostics Area to access. More...
 
Which_area get_which_da (void) const
 Get which Diagnostics Area to access. More...
 

Private Attributes

List< Statement_information_item > * m_items
 

Additional Inherited Members

- Public Types inherited from Diagnostics_information
enum  Which_area { CURRENT_AREA , STACKED_AREA }
 Which Diagnostics Area to access. More...
 
- Protected Member Functions inherited from Diagnostics_information
virtual ~Diagnostics_information ()
 Diagnostics_information objects are allocated in thd->mem_root. More...
 
template<typename Diag_item , typename Context >
bool evaluate (THD *thd, Diag_item *diag_item, Context ctx)
 Evaluate a diagnostics information item in a specific context. More...
 

Detailed Description

Statement information.

Remarks
Provides information about the execution of a statement.

Constructor & Destructor Documentation

◆ Statement_information()

Statement_information::Statement_information ( List< Statement_information_item > *  items)
inline

Constructor, used to represent the statement information of a GET DIAGNOSTICS statement.

Parameters
itemsList of requested statement information items.

Member Function Documentation

◆ aggregate()

bool Statement_information::aggregate ( THD thd,
const Diagnostics_area da 
)
overridevirtual

Obtain statement information in the context of a Diagnostics Area.

Obtain statement information in the context of a given Diagnostics Area.

Parameters
thdThe current thread.
daThe Diagnostics Area.
Return values
falseon success.
trueon error

Implements Diagnostics_information.

Member Data Documentation

◆ m_items

List<Statement_information_item>* Statement_information::m_items
private

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