![]() |
MySQL
8.0.22
Source Code Documentation
|
#include <mysql/components/component_implementation.h>
#include <mysql/components/services/component_status_var_service.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
Classes | |
struct | example_vars_t |
Macros | |
#define | MAX_BUFFER_LENGTH 100 |
This file contains a test (example) component, which tests the apis of "status_variable_registration" service provided by the "mysql_server" component. More... | |
#define | WRITE_LOG(format, lit_log_text) |
Functions | |
REQUIRES_SERVICE_PLACEHOLDER (status_variable_registration) | |
static void | char_ptr_foo () |
static int | show_func_example (THD *, SHOW_VAR *var, char *buf) |
static mysql_service_status_t | test_component_status_var_service_init () |
Initialization entry method for test component. More... | |
static mysql_service_status_t | test_component_status_var_service_deinit () |
De-initialization method for Component. More... | |
END_COMPONENT_PROVIDES () | |
REQUIRES_SERVICE (status_variable_registration) | |
END_COMPONENT_REQUIRES () | |
METADATA ("mysql.author", "Oracle Corporation") | |
METADATA ("mysql.license", "GPL") | |
METADATA ("test_component_status_var_service", "1") | |
END_COMPONENT_METADATA () | |
Variables | |
int | log_text_len = 0 |
char | log_text [MAX_BUFFER_LENGTH] |
FILE * | outfile |
const char * | filename = "test_component_status_var_service.log" |
static int | int_variable_value = 7 |
static bool | bool_variable_value = true |
static long | long_variable_value = 1234567 |
static double | double_variable_value = 8.0 |
static long long | longlong_variable_value = 123456789 |
static char | char_variable_value [] = "Testing CHAR status variable" |
static char * | char_ptr_variable_value = nullptr |
static SHOW_VAR | status_int_var [] |
static SHOW_VAR | status_bool_var [] |
static SHOW_VAR | status_long_var [] |
static SHOW_VAR | status_longlong_var [] |
static SHOW_VAR | status_char_var [] |
static SHOW_VAR | status_char_ptr_var [] |
static SHOW_VAR | status_double_var [] |
static SHOW_VAR | status_func_var [] |
example_vars_t | example_vars = {"MySQL", 8.0} |
static SHOW_VAR | array_value [] |
static SHOW_VAR | status_array_var [] |
mysql_component_t | mysql_component_test_component_status_var_service |
#define MAX_BUFFER_LENGTH 100 |
This file contains a test (example) component, which tests the apis of "status_variable_registration" service provided by the "mysql_server" component.
#define WRITE_LOG | ( | format, | |
lit_log_text | |||
) |
|
static |
END_COMPONENT_METADATA | ( | ) |
END_COMPONENT_PROVIDES | ( | ) |
END_COMPONENT_REQUIRES | ( | ) |
METADATA | ( | "mysql.author" | , |
"Oracle Corporation" | |||
) |
METADATA | ( | "mysql.license" | , |
"GPL" | |||
) |
METADATA | ( | "test_component_status_var_service" | , |
"1" | |||
) |
REQUIRES_SERVICE | ( | status_variable_registration | ) |
REQUIRES_SERVICE_PLACEHOLDER | ( | status_variable_registration | ) |
|
static |
De-initialization method for Component.
|
static |
Initialization entry method for test component.
It executes the tests of the service.
|
static |
|
static |
|
static |
|
static |
example_vars_t example_vars = {"MySQL", 8.0} |
const char* filename = "test_component_status_var_service.log" |
|
static |
char log_text[MAX_BUFFER_LENGTH] |
int log_text_len = 0 |
|
static |
|
static |
mysql_component_t mysql_component_test_component_status_var_service |
FILE* outfile |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |