MySQL 5.6.14 Source Code Document
|
#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) |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t size) throw () |
static void * | operator new[] (size_t size) throw () |
static void * | operator new[] (size_t size, MEM_ROOT *mem_root) throw () |
static void * | operator new (size_t size, MEM_ROOT *mem_root) throw () |
static void | operator delete (void *ptr, size_t size) |
static void | operator delete (void *ptr, MEM_ROOT *mem_root) |
static void | operator delete[] (void *ptr, MEM_ROOT *mem_root) |
static void | operator delete[] (void *ptr, size_t size) |
Represents the diagnostics information to be obtained.
Diagnostic information is made available through statement information and condition information items.
Definition at line 61 of file sql_get_diagnostics.h.
Which diagnostics area to access. Only CURRENT is supported for now.
Definition at line 68 of file sql_get_diagnostics.h.
|
inlineprotectedvirtual |
Diagnostics_information objects are allocated in thd->mem_root. Do not rely on the destructor for any cleanup.
Definition at line 98 of file sql_get_diagnostics.h.
|
pure virtual |
Aggregate diagnostics information.
thd | The current thread. |
da | The diagnostics area. |
false | on success. |
true | on error |
Implemented in Condition_information, Statement_information, and get_diagnostics_unittest::MockDiagInfoError.
|
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. |
Definition at line 114 of file sql_get_diagnostics.h.
|
inline |
Get which diagnostics area to access.
Definition at line 79 of file sql_get_diagnostics.h.
|
inline |
Set which diagnostics area to access.
Definition at line 75 of file sql_get_diagnostics.h.