![]() |
MySQL 8.0.29
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... | |
Variables | |
static const mysql_service_registry_t * | reg_srv = nullptr |
const mysql_service_log_builtins_t * | log_bi = nullptr |
accessor built-ins More... | |
const mysql_service_log_builtins_string_t * | log_bs = nullptr |
string built-ins More... | |
Ename_Record | ename_array [] |
Esalary_Record | esalary_array [] |
Machine_Record | machine_array [] |
const mysql_service_registry_t * | r = nullptr |
my_h_service | h_ret_table_svc = nullptr |
const mysql_service_pfs_plugin_table_t * | table_svc = nullptr |
PFS_engine_table_share_proxy * | share_list [4] = {nullptr, nullptr, nullptr, nullptr} |
unsigned int | share_list_count = 4 |
static PSI_mutex_key | key_mutex_name |
static PSI_mutex_key | key_mutex_salary |
static PSI_mutex_key | key_mutex_machine |
static PSI_mutex_info | mutex_info [] |
static struct st_mysql_daemon | pfs_example_plugin_employee |
mysql_declare_plugin_end | |
#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 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 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:
Ename_Record ename_array[] |
Esalary_Record esalary_array[] |
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_t* table_svc = nullptr |