MySQL 8.4.3
Source Code Documentation
|
#include <mysql/plugin.h>
#include <mysql_version.h>
#include <mysql/components/my_service.h>
#include <mysql/components/services/log_builtins.h>
#include <mysqld_error.h>
#include "mysql/psi/mysql_mutex.h"
#include "plugin/pfs_table_plugin/pfs_example_employee_name.h"
#include "plugin/pfs_table_plugin/pfs_example_employee_salary.h"
#include "plugin/pfs_table_plugin/pfs_example_machine.h"
#include "plugin/pfs_table_plugin/pfs_example_machines_by_emp_by_mtype.h"
Macros | |
#define | LOG_COMPONENT_TAG "pfs_example_plugin_employee" |
Functions | |
bool | acquire_service_handles (MYSQL_PLUGIN p) |
acquire_service_handles does following: More... | |
void | release_service_handles () |
release_service_handles does following: More... | |
int | ename_prepare_insert_row () |
int | esalary_prepare_insert_row () |
int | machine_prepare_insert_row () |
static bool | pfs_example_func (MYSQL_PLUGIN p) |
pfs_example_func does following : More... | |
static int | pfs_example_plugin_employee_init (void *p) |
Initialize the pfs_example_plugin_employee at server start or plugin installation. More... | |
static int | pfs_example_plugin_employee_check (void *) |
static int | pfs_example_plugin_employee_deinit (void *p) |
Terminate the pfs_example_plugin_employee at server shutdown or plugin deinstallation. More... | |
mysql_declare_plugin (pfs_example_plugin_employee) | |
pfs_example_plugin_employee plugin descriptor More... | |
#define LOG_COMPONENT_TAG "pfs_example_plugin_employee" |
bool acquire_service_handles | ( | MYSQL_PLUGIN | p | ) |
acquire_service_handles does following:
int ename_prepare_insert_row | ( | ) |
int esalary_prepare_insert_row | ( | ) |
int machine_prepare_insert_row | ( | ) |
mysql_declare_plugin | ( | pfs_example_plugin_employee | ) |
pfs_example_plugin_employee plugin descriptor
|
static |
pfs_example_func does following :
Error messages are written to the server's error log. In case of success writes a single information message to the server's log.
false | success |
true | failure |
Call add_tables function of pfs_plugin_table_v1 service to add plugin tables in performance schema.
|
static |
|
static |
Terminate the pfs_example_plugin_employee at server shutdown or plugin deinstallation.
Call delete_tables function of pfs_plugin_table_v1 service to delete plugin tables from performance schema
|
static |
Initialize the pfs_example_plugin_employee at server start or plugin installation.
void release_service_handles | ( | ) |
release_service_handles does following:
const mysql_service_pfs_plugin_column_bigint_v1_t* col_bigint_svc = nullptr |
const mysql_service_pfs_plugin_column_date_v1_t* col_date_svc = nullptr |
const mysql_service_pfs_plugin_column_enum_v1_t* col_enum_svc = nullptr |
const mysql_service_pfs_plugin_column_integer_v1_t* col_int_svc = nullptr |
const mysql_service_pfs_plugin_column_string_v2_t* col_string_svc = nullptr |
const mysql_service_pfs_plugin_column_time_v1_t* col_time_svc = nullptr |
Ename_Record ename_array[] |
Esalary_Record esalary_array[] |
my_h_service h_ret_col_bigint_svc = nullptr |
my_h_service h_ret_col_date_svc = nullptr |
my_h_service h_ret_col_enum_svc = nullptr |
my_h_service h_ret_col_int_svc = nullptr |
my_h_service h_ret_col_string_svc = nullptr |
my_h_service h_ret_col_time_svc = nullptr |
my_h_service h_ret_table_svc = nullptr |
|
static |
|
static |
|
static |
const mysql_service_log_builtins_t* log_bi = nullptr |
accessor built-ins
accessor built-ins
const mysql_service_log_builtins_string_t* log_bs = nullptr |
string built-ins
Machine_Record machine_array[] |
|
static |
mysql_declare_plugin_end |
|
static |
const mysql_service_registry_t* r = nullptr |
|
static |
PFS_engine_table_share_proxy* share_list[4] = {nullptr, nullptr, nullptr, nullptr} |
unsigned int share_list_count = 4 |
const mysql_service_pfs_plugin_table_v1_t* table_svc = nullptr |