Plugin System Variables
Plugin API reference: Plugin System Variables. Generated from the MariaDB server headers by doxygen and moxygen.
Declarations for server variables and command line options.
See also: Plugin System Variables Implementation
Groups
A list of the plugin system variable types.
Flags for plugin system variables.
The following declarations are utilities to implement plugin system variables API. Do not use directly in plugin code.
Macros for defining plugin system variables.
Macros for defining session-local plugin system variables.
Classes
st_mysql_value Reading values API.
Macros
System variable value reference macro.
Access per-thread plugin system variable values.
SYSVAR
Defined in plugin.h:691
System variable value reference macro.
Macro to reference plugin system variable global value.
Example use
See also: st_mysql_sys_var and Plugin System Variables Implementation
Parameters
name
The name of the plugin system variable.
name
The name of the plugin system variable.
THDVAR
Defined in plugin.h:705
Access per-thread plugin system variable values.
Used to reference the session system variable values.
Returns
Reference to the corresponding plugin system variable's value.
See also: Define a Session Variable
Parameters
thd
The session handle. If thd is NULL, the global value is accessed.
name
The name of the plugin system variable.
thd
The session handle. If thd is NULL, the global value is accessed.
name
The name of the plugin system variable.
MYSQL_VALUE_TYPE_STRING
Defined in plugin.h:864
MYSQL_VALUE_TYPE_REAL
Defined in plugin.h:865
MYSQL_VALUE_TYPE_INT
Defined in plugin.h:866
Typedefs
int(*
This function should parse the user provided value and store in the provided temporary storage any data as required by the update func. There is sufficient space in the temporary storage to store a double. Note that the update func may not be called if any other error occurs so any memory allocated should be thread-local so that it may be freed automatically at the end of the statement.
void(*
This function should use the validated value stored in the temporary store save and persist it in the provided pointer to the dynamic variable. For example, strings may require memory to be allocated.
mysql_var_check_func
Defined in plugin.h:413
This function should parse the user provided value and store in the provided temporary storage any data as required by the update func. There is sufficient space in the temporary storage to store a double. Note that the update func may not be called if any other error occurs so any memory allocated should be thread-local so that it may be freed automatically at the end of the statement.
See also: Check and Update Callbacks
Parameters
thd
thread handle
var
dynamic variable being altered
save
pointer to temporary storage. Valid across check and update functions.
value
user provided value
thd
thread handle
var
dynamic variable being altered
save
pointer to temporary storage. Valid across check and update functions.
value
user provided value
Return Values
0
user provided value is OK and the update func may be called.
any
other value indicates error.
mysql_var_update_func
Defined in plugin.h:432
This function should use the validated value stored in the temporary store save and persist it in the provided pointer to the dynamic variable. For example, strings may require memory to be allocated.
See also: Check and Update Callbacks
Parameters
thd
thread handle
var
dynamic variable being altered
var_ptr
pointer to dynamic variable
save
pointer to temporary storage. Valid across check and update functions.
thd
thread handle
var
dynamic variable being altered
var_ptr
pointer to dynamic variable
save
pointer to temporary storage. Valid across check and update functions.
Class Definitions
st_mysql_value
Defined in plugin.h:880
st_mysql_value Reading values API.
Used by server variables framework to parse user-provided values.
Will be used for arguments when implementing UDFs.
Note that val_str() returns a string in temporary memory that will be freed at the end of statement. Copy the string if you need it to persist.
Public Attributes
value_type
Defined in plugin.h:882
val_str
Defined in plugin.h:883
val_real
Defined in plugin.h:884
val_int
Defined in plugin.h:885
is_unsigned
Defined in plugin.h:886
This page is licensed: GPLv2
Last updated
Was this helpful?

