MySQL 8.4.2
Source Code Documentation
Statement_information_item Class Reference

A statement information item. More...

#include <sql_get_diagnostics.h>

Inheritance diagram for Statement_information_item:
[legend]

Public Types

enum  Name { NUMBER , ROW_COUNT }
 The name of a statement information item. More...
 

Public Member Functions

 Statement_information_item (Name name, Item *target)
 Constructor, used to represent a statement information item. More...
 
Itemget_value (THD *thd, const Diagnostics_area *da)
 Obtain value of this statement information item. More...
 
- Public Member Functions inherited from Diagnostics_information_item
bool set_value (THD *thd, Item **value)
 Set a value for this item. More...
 

Private Attributes

Name m_name
 The name of this statement information item. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Diagnostics_information_item
 Diagnostics_information_item (Item *target)
 Constructor, used to represent a diagnostics information item. More...
 
virtual ~Diagnostics_information_item ()
 Diagnostics_information_item objects are allocated in thd->mem_root. More...
 

Detailed Description

A statement information item.

Member Enumeration Documentation

◆ Name

The name of a statement information item.

Enumerator
NUMBER 
ROW_COUNT 

Constructor & Destructor Documentation

◆ Statement_information_item()

Statement_information_item::Statement_information_item ( Name  name,
Item target 
)
inline

Constructor, used to represent a statement information item.

Parameters
nameThe name of this item.
targetA target that gets the value of this item.

Member Function Documentation

◆ get_value()

Item * Statement_information_item::get_value ( THD thd,
const Diagnostics_area da 
)

Obtain value of this statement information item.

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

Parameters
thdThe current thread.
daThe Diagnostics Area.
Return values
Itemrepresenting the value.
NULLon error.

Member Data Documentation

◆ m_name

Name Statement_information_item::m_name
private

The name of this statement information item.


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