24#ifndef COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_QUERY_DEFS_H
25#define COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_QUERY_DEFS_H
35#define EVENT_TRACKING_QUERY_START (1 << 0)
37#define EVENT_TRACKING_QUERY_NESTED_START (1 << 1)
39#define EVENT_TRACKING_QUERY_STATUS_END (1 << 2)
41#define EVENT_TRACKING_QUERY_NESTED_STATUS_END (1 << 3)
43#define EVENT_TRACKING_QUERY_ALL \
44 EVENT_TRACKING_QUERY_START | EVENT_TRACKING_QUERY_NESTED_START | \
45 EVENT_TRACKING_QUERY_STATUS_END | EVENT_TRACKING_QUERY_NESTED_STATUS_END
Common data used for tracking various types of events.
const char * mysql_sql_command_t
SQL command type definition.
Definition: event_tracking_common_defs.h:39
unsigned long mysql_connection_id
Connection Identifier.
Definition: event_tracking_common_defs.h:46
unsigned long mysql_event_tracking_query_subclass_t
Events for Query event tracking.
Definition: event_tracking_query_defs.h:52
String with length information.
Definition: mysql_string_defs.h:33
Structure for Query event tracking.
Definition: event_tracking_query_defs.h:59
int status
Event status.
Definition: event_tracking_query_defs.h:63
const char * query_charset
SQL query charset.
Definition: event_tracking_query_defs.h:71
mysql_sql_command_t sql_command
SQL command string - ASCII.
Definition: event_tracking_query_defs.h:67
mysql_connection_id connection_id
Connection id.
Definition: event_tracking_query_defs.h:65
mysql_event_tracking_query_subclass_t event_subclass
Event subclass.
Definition: event_tracking_query_defs.h:61
mysql_cstring_with_length query
SQL query.
Definition: event_tracking_query_defs.h:69