MySQL 8.4.2
Source Code Documentation
event_tracking_global_variable_defs.h
Go to the documentation of this file.
1/* Copyright (c) 2022, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_GLOBAL_VARIABLE_DEFS_H
25#define COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_GLOBAL_VARIABLE_DEFS_H
26
28
29/**
30 @file mysql/components/services/defs/event_tracking_global_variable_defs.h
31 Data for global variable event tracking.
32*/
33
34/** Occurs when global variable is retrieved. */
35#define EVENT_TRACKING_GLOBAL_VARIABLE_GET (1 << 0)
36/** Occurs when global variable is set. */
37#define EVENT_TRACKING_GLOBAL_VARIABLE_SET (1 << 1)
38
39#define EVENT_TRACKING_GLOBAL_VARIABLE_ALL \
40 EVENT_TRACKING_GLOBAL_VARIABLE_GET | EVENT_TRACKING_GLOBAL_VARIABLE_SET
41
42/**
43 @typedef mysql_event_tracking_global_variable_subclass_t
44
45 Events for Global variable event tracking.
46*/
48
49/** Structure for Global variable event tracking. */
51 /** Event subclass. */
53 /** Connection id. */
55 /** SQL command string */
57 /** Variable name. */
59 /** Variable value. */
61};
62
63#endif // !COMPONENTS_SERVICES_DEFS_EVENT_TRACKING_GLOBAL_VARIABLE_DEFS_H
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_global_variable_subclass_t
Events for Global variable event tracking.
Definition: event_tracking_global_variable_defs.h:47
String with length information.
Definition: mysql_string_defs.h:33
Structure for Global variable event tracking.
Definition: event_tracking_global_variable_defs.h:50
mysql_sql_command_t sql_command
SQL command string.
Definition: event_tracking_global_variable_defs.h:56
mysql_cstring_with_length variable_name
Variable name.
Definition: event_tracking_global_variable_defs.h:58
mysql_cstring_with_length variable_value
Variable value.
Definition: event_tracking_global_variable_defs.h:60
mysql_event_tracking_global_variable_subclass_t event_subclass
Event subclass.
Definition: event_tracking_global_variable_defs.h:52
mysql_connection_id connection_id
Connection id.
Definition: event_tracking_global_variable_defs.h:54