|
My Project
|
#include <sql_get_diagnostics.h>
Public Types | |
| enum | Which_area { CURRENT_AREA } |
Public Member Functions | |
| void | set_which_da (Which_area area) |
| Which_area | get_which_da (void) const |
| virtual bool | aggregate (THD *thd, const Diagnostics_area *da)=0 |
Protected Member Functions | |
| virtual | ~Diagnostics_information () |
| template<typename Diag_item , typename Context > | |
| bool | evaluate (THD *thd, Diag_item *diag_item, Context ctx) |
Represents the diagnostics information to be obtained.
Diagnostic information is made available through statement information and condition information items.
| virtual Diagnostics_information::~Diagnostics_information | ( | ) | [inline, protected, virtual] |
Diagnostics_information objects are allocated in thd->mem_root. Do not rely on the destructor for any cleanup.
| virtual bool Diagnostics_information::aggregate | ( | THD * | thd, |
| const Diagnostics_area * | da | ||
| ) | [pure virtual] |
Aggregate diagnostics information.
| thd | The current thread. |
| da | The diagnostics area. |
| false | on success. |
| true | on error |
Implemented in Condition_information, and Statement_information.
| bool Diagnostics_information::evaluate | ( | THD * | thd, |
| Diag_item * | diag_item, | ||
| Context | ctx | ||
| ) | [inline, protected] |
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. |
| Which_area Diagnostics_information::get_which_da | ( | void | ) | const [inline] |
Get which diagnostics area to access.
| void Diagnostics_information::set_which_da | ( | Which_area | area | ) | [inline] |
Set which diagnostics area to access.
1.7.6.1