MySQL 9.2.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
status_variables_bits.h
Go to the documentation of this file.
1/* Copyright (c) 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_BITS_STATUS_VARIABLES_BITS_H
25#define COMPONENTS_SERVICES_BITS_STATUS_VARIABLES_BITS_H
26
28
29/**
30 Declarations for SHOW STATUS support in plugins
31*/
35 SHOW_INT, ///< shown as _unsigned_ int
36 SHOW_LONG, ///< shown as _unsigned_ long
37 SHOW_LONGLONG, ///< shown as _unsigned_ longlong
43 /*
44 This include defines server-only values of the enum.
45 Using them in plugins is not supported.
46 */
58 /*
59 Support for signed values are extended for plugins.
60 */
64};
65
66/**
67 Status variable scope.
68 Only GLOBAL status variable scope is available in plugins.
69*/
73 /* Server-only values. Not supported in plugins. */
76};
77
78/**
79 SHOW STATUS Server status variable
80*/
81struct SHOW_VAR {
82 const char *name;
83 char *value;
86};
87
88#define SHOW_VAR_MAX_NAME_LEN 64
89#define SHOW_VAR_FUNC_BUFF_SIZE 1024
90
91typedef int (*mysql_show_var_func)(MYSQL_THD, SHOW_VAR *, char *);
92
93#endif /* COMPONENTS_SERVICES_BITS_STATUS_VARIABLES_BITS_H */
#define MYSQL_THD
Definition: backup_page_tracker.h:38
enum_mysql_show_type
Declarations for SHOW STATUS support in plugins.
Definition: status_variables_bits.h:32
@ SHOW_DOUBLE
Definition: status_variables_bits.h:42
@ SHOW_LONG
shown as unsigned long
Definition: status_variables_bits.h:36
@ SHOW_ARRAY
Definition: status_variables_bits.h:40
@ SHOW_FUNC
Definition: status_variables_bits.h:41
@ SHOW_CHAR_PTR
Definition: status_variables_bits.h:39
@ SHOW_KEY_CACHE_LONGLONG
Definition: status_variables_bits.h:48
@ SHOW_MY_BOOL
Definition: status_variables_bits.h:52
@ SHOW_CHAR
Definition: status_variables_bits.h:38
@ SHOW_LONGLONG_STATUS
Definition: status_variables_bits.h:56
@ SHOW_SIGNED_INT
Definition: status_variables_bits.h:61
@ SHOW_LEX_STRING
Definition: status_variables_bits.h:57
@ SHOW_KEY_CACHE_LONG
Definition: status_variables_bits.h:47
@ SHOW_LONG_STATUS
Definition: status_variables_bits.h:49
@ SHOW_HAVE
Definition: status_variables_bits.h:51
@ SHOW_BOOL
Definition: status_variables_bits.h:34
@ SHOW_LONG_NOFLUSH
Definition: status_variables_bits.h:55
@ SHOW_DOUBLE_STATUS
Definition: status_variables_bits.h:50
@ SHOW_HA_ROWS
Definition: status_variables_bits.h:53
@ SHOW_LONGLONG
shown as unsigned longlong
Definition: status_variables_bits.h:37
@ SHOW_INT
shown as unsigned int
Definition: status_variables_bits.h:35
@ SHOW_SYS
Definition: status_variables_bits.h:54
@ SHOW_UNDEF
Definition: status_variables_bits.h:33
@ SHOW_SIGNED_LONG
Definition: status_variables_bits.h:62
@ SHOW_SIGNED_LONGLONG
Definition: status_variables_bits.h:63
int(* mysql_show_var_func)(MYSQL_THD, SHOW_VAR *, char *)
Definition: status_variables_bits.h:91
enum_mysql_show_scope
Status variable scope.
Definition: status_variables_bits.h:70
@ SHOW_SCOPE_GLOBAL
Definition: status_variables_bits.h:72
@ SHOW_SCOPE_SESSION
Definition: status_variables_bits.h:74
@ SHOW_SCOPE_ALL
Definition: status_variables_bits.h:75
@ SHOW_SCOPE_UNDEF
Definition: status_variables_bits.h:71
SHOW STATUS Server status variable.
Definition: status_variables_bits.h:81
enum enum_mysql_show_scope scope
Definition: status_variables_bits.h:85
char * value
Definition: status_variables_bits.h:83
enum enum_mysql_show_type type
Definition: status_variables_bits.h:84
const char * name
Definition: status_variables_bits.h:82