MySQL 9.0.0
Source Code Documentation
mysql_status_variable_registration_imp Class Reference

An implementation of the component status variables Service to register variable and unregister variable. More...

#include <component_status_var_service_imp.h>

Static Public Member Functions

static mysql_service_status_t register_variable (SHOW_VAR *status_var) noexcept
 Register status variable. More...
 
static mysql_service_status_t unregister_variable (SHOW_VAR *status_var) noexcept
 Unregister's status variable. More...
 

Detailed Description

An implementation of the component status variables Service to register variable and unregister variable.

Member Function Documentation

◆ register_variable()

mysql_service_status_t mysql_status_variable_registration_imp::register_variable ( SHOW_VAR status_var)
staticnoexcept

Register status variable.

Parameters
status_varfully constructed status variable object.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

Note: Please see the components/test/test_status_var_service.cc file, to know how to construct status variables for different variable types.

◆ unregister_variable()

mysql_service_status_t mysql_status_variable_registration_imp::unregister_variable ( SHOW_VAR status_var)
staticnoexcept

Unregister's status variable.

Parameters
status_varSHOW_VAR object with only the name of the variable, which has to be removed from the global list.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

The documentation for this class was generated from the following files: