MySQL 9.0.0
Source Code Documentation
mysql_system_variable_bits.h
Go to the documentation of this file.
1/* Copyright (c) 2024, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef MYSQL_SYSTEM_VARIABLE_BITS_H
25#define MYSQL_SYSTEM_VARIABLE_BITS_H
26
27#include <sql/set_var.h> // enum_var_type, sys_var
28#include "sql/sql_class.h" // THD
29
30/**
31 Return the system variable type given a type name.
32*/
33enum_var_type sysvar_type(const char *type_name);
34
35const char *get_variable_value(THD *thd, sys_var *system_var, char *val_buf,
36 enum_var_type var_type, size_t *val_length);
37
38#endif /* MYSQL_SYSTEM_VARIABLE_BITS_H */
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
A class representing one system variable - that is something that can be accessed as @global....
Definition: set_var.h:107
enum_var_type sysvar_type(const char *type_name)
Return the system variable type given a type name.
Definition: mysql_system_variable_update_imp.cc:50
const char * get_variable_value(THD *thd, sys_var *system_var, char *val_buf, enum_var_type var_type, size_t *val_length)
Definition: component_sys_var_service.cc:626
"public" interface to sys_var - server configuration variables.
enum_var_type
Definition: set_var.h:92