![]()  | 
  
    MySQL 8.0.44
    
   Source Code Documentation 
   | 
 
Represents the diagnostics information to be obtained. More...
#include <sql_get_diagnostics.h>
Public Types | |
| enum | Which_area { CURRENT_AREA , STACKED_AREA } | 
| Which Diagnostics Area to access.  More... | |
Public Member Functions | |
| 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... | |
| virtual bool | aggregate (THD *thd, const Diagnostics_area *da)=0 | 
| Aggregate diagnostics information.  More... | |
Protected Member Functions | |
| 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... | |
Private Attributes | |
| Which_area | m_area | 
| Which Diagnostics Area to access.  More... | |
Represents the diagnostics information to be obtained.
Diagnostic information is made available through statement information and condition information items.
      
  | 
  inlineprotectedvirtual | 
Diagnostics_information objects are allocated in thd->mem_root.
Do not rely on the destructor for any cleanup.
      
  | 
  pure virtual | 
Aggregate diagnostics information.
| thd | The current thread. | 
| da | The Diagnostics Area. | 
| false | on success. | 
| true | on error | 
Implemented in Statement_information, and Condition_information.
      
  | 
  inlineprotected | 
Evaluate a diagnostics information item in a specific context.
| thd | The current thread. | 
| diag_item | The diagnostics information item. | 
| ctx | The context to evaluate the item. | 
| false | on success. | 
| true | on error. | 
      
  | 
  inline | 
Get which Diagnostics Area to access.
      
  | 
  inline | 
Set which Diagnostics Area to access.
      
  | 
  private | 
Which Diagnostics Area to access.