MySQL 9.1.0
Source Code Documentation
|
#include <cstddef>
#include <mysql/components/service.h>
#include <mysql/components/services/mysql_string.h>
Go to the source code of this file.
Typedefs | |
typedef struct global_variable_attributes_iterator_imp * | global_variable_attributes_iterator |
typedef bool(* | global_variable_attributes_iterator_create_t) (const char *variable_base, const char *variable_name, const char *attribute_name, global_variable_attributes_iterator *iterator) |
Initialize System Variable Attributes iterator object to enumerate key/value attributes attached to system variables, pointing to 1st matching attribute. More... | |
typedef bool(* | global_variable_attributes_iterator_destroy_t) (global_variable_attributes_iterator iterator) |
Uninitialize System Variable Attributes iterator. More... | |
typedef bool(* | global_variable_attributes_iterator_advance_t) (global_variable_attributes_iterator iterator) |
Advance System Variable Attributes iterator to next element. More... | |
typedef bool(* | global_variable_attributes_iterator_get_name_t) (global_variable_attributes_iterator iterator, my_h_string *out_name_handle) |
Return attribute name for the element pointed by System Variable Attributes iterator. More... | |
typedef bool(* | global_variable_attributes_iterator_get_value_t) (global_variable_attributes_iterator iterator, my_h_string *out_value_handle) |
Return attribute value for the element pointed by System Variable Attributes iterator. More... | |
typedef bool(* | global_variable_attributes_assign_t) (const char *variable_base, const char *variable_name, const char *attribute_name, const char *attribute_value) |
Attach a single key/value attribute to a given global system variable, or delete one or all attributes of a given variable. More... | |
typedef bool(* | global_variable_attributes_get_t) (const char *variable_base, const char *variable_name, const char *attribute_name, char *attribute_value_buffer, size_t *inout_attribute_value_length) |
Read a single global system variable attribute value, if exists. More... | |
typedef bool(* | global_variable_attributes_get_time_t) (const char *variable_base, const char *variable_name, char *timestamp_value_buffer, size_t *inout_timestamp_value_length) |
Read timestamp indicating when a global system variable was last modified. More... | |
typedef bool(* | global_variable_attributes_get_user_t) (const char *variable_base, const char *variable_name, char *user_value_buffer, size_t *inout_user_value_length) |
Read user name that last modified a global system variable. More... | |
typedef bool(* global_variable_attributes_assign_t) (const char *variable_base, const char *variable_name, const char *attribute_name, const char *attribute_value) |
Attach a single key/value attribute to a given global system variable, or delete one or all attributes of a given variable.
variable_base | Variable prefix, NULL if none. |
variable_name | Variable name. |
attribute_name | Attribute name, if nullptr unset all attributes for the variable. |
attribute_value | Attribute value, if nullptr unset the attribute. |
false | Success |
true | Failure or no more elements |
typedef bool(* global_variable_attributes_get_t) (const char *variable_base, const char *variable_name, const char *attribute_name, char *attribute_value_buffer, size_t *inout_attribute_value_length) |
Read a single global system variable attribute value, if exists.
variable_base | Variable prefix, NULL if none. |
variable_name | Variable name. |
attribute_name | Attribute name. |
attribute_value_buffer | Pointer to buffer to receive the result. |
inout_attribute_value_length | Buffer size, also used to return value string size. |
false | Success |
true | Failure or no more elements |
typedef bool(* global_variable_attributes_get_time_t) (const char *variable_base, const char *variable_name, char *timestamp_value_buffer, size_t *inout_timestamp_value_length) |
Read timestamp indicating when a global system variable was last modified.
variable_base | Variable prefix, NULL if none. |
variable_name | Variable name. |
timestamp_value_buffer | Pointer to buffer to receive the result. |
inout_timestamp_value_length | Buffer size, also used to return value string size. |
false | Success |
true | Failure or no more elements |
typedef bool(* global_variable_attributes_get_user_t) (const char *variable_base, const char *variable_name, char *user_value_buffer, size_t *inout_user_value_length) |
Read user name that last modified a global system variable.
variable_base | Variable prefix, NULL if none. |
variable_name | Variable name. |
user_value_buffer | Pointer to buffer to receive the result. |
inout_user_value_length | Buffer size, also used to return value string size. |
false | Success |
true | Failure or no more elements |
typedef struct global_variable_attributes_iterator_imp* global_variable_attributes_iterator |
typedef bool(* global_variable_attributes_iterator_advance_t) (global_variable_attributes_iterator iterator) |
Advance System Variable Attributes iterator to next element.
iterator | iterator object |
false | Success |
true | Failure or no more elements |
typedef bool(* global_variable_attributes_iterator_create_t) (const char *variable_base, const char *variable_name, const char *attribute_name, global_variable_attributes_iterator *iterator) |
Initialize System Variable Attributes iterator object to enumerate key/value attributes attached to system variables, pointing to 1st matching attribute.
variable_base | Variable prefix or NULL if none. | |
variable_name | define system variable scope | |
attribute_name | Optional attribute name scope (NULL to iterate all attributes of a variable) | |
[out] | iterator | iterator object |
false | Success |
true | Failure |
typedef bool(* global_variable_attributes_iterator_destroy_t) (global_variable_attributes_iterator iterator) |
Uninitialize System Variable Attributes iterator.
iterator | iterator object |
false | Success |
true | Failure |
typedef bool(* global_variable_attributes_iterator_get_name_t) (global_variable_attributes_iterator iterator, my_h_string *out_name_handle) |
Return attribute name for the element pointed by System Variable Attributes iterator.
iterator | iterator object | |
[out] | out_name_handle | pointer to receive name string content |
false | Success |
true | Failure or no more elements |
typedef bool(* global_variable_attributes_iterator_get_value_t) (global_variable_attributes_iterator iterator, my_h_string *out_value_handle) |
Return attribute value for the element pointed by System Variable Attributes iterator.
iterator | iterator object | |
[out] | out_value_handle | pointer to receive value string content |
false | Success |
true | Failure or no more elements |