![]() |
MySQL 8.0.43
Source Code Documentation
|
#include "pfs_example_component_population.h"#include <cstring>#include "my_sys.h"#include "pfs_example_continent.h"#include "pfs_example_country.h"Macros | |
| #define | MAX_BUFFER_LENGTH 80 |
| #define | WRITE_LOG(lit_log_text) |
Functions | |
| int | continent_prepare_insert_row () |
| int | country_prepare_insert_row () |
| mysql_service_status_t | pfs_example_component_population_init () |
| Initialize the pfs_example_component_population at server start or component installation. More... | |
| mysql_service_status_t | pfs_example_component_population_deinit () |
| Terminate the pfs_example_component_population at server shutdown or component deinstallation. More... | |
| END_COMPONENT_PROVIDES () | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (pfs_plugin_table_v1, pt_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (pfs_plugin_column_string_v2, pc_string_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (pfs_plugin_column_year_v1, pc_year_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (pfs_plugin_column_bigint_v1, pc_bigint_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (pfs_plugin_column_double_v1, pc_double_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (pfs_plugin_column_text_v1, pc_text_srv) | |
| REQUIRES_SERVICE_AS (pfs_plugin_table_v1, pt_srv) | |
| REQUIRES_SERVICE_AS (pfs_plugin_column_string_v2, pc_string_srv) | |
| REQUIRES_SERVICE_AS (pfs_plugin_column_year_v1, pc_year_srv) | |
| REQUIRES_SERVICE_AS (pfs_plugin_column_bigint_v1, pc_bigint_srv) | |
| REQUIRES_SERVICE_AS (pfs_plugin_column_double_v1, pc_double_srv) | |
| REQUIRES_SERVICE_AS (pfs_plugin_column_text_v1, pc_text_srv) | |
| END_COMPONENT_REQUIRES () | |
| METADATA ("mysql.author", "Oracle Corporation") | |
| METADATA ("mysql.license", "GPL") | |
| METADATA ("test_property", "1") | |
| END_COMPONENT_METADATA () | |
Variables | |
| Continent_record | continent_array [] |
| Country_record | country_array [] |
| FILE * | outfile = nullptr |
| const char * | filename = "pfs_example_component_population.log" |
| char | log_text [MAX_BUFFER_LENGTH] = {'\0'} |
| PFS_engine_table_share_proxy * | share_list [2] = {nullptr, nullptr} |
| unsigned int | share_list_count = 2 |
| mysql_component_t | mysql_component_pfs_example_component_population |
| #define MAX_BUFFER_LENGTH 80 |
| #define WRITE_LOG | ( | lit_log_text | ) |
| int continent_prepare_insert_row | ( | ) |
| int country_prepare_insert_row | ( | ) |
| END_COMPONENT_METADATA | ( | ) |
| END_COMPONENT_PROVIDES | ( | ) |
| END_COMPONENT_REQUIRES | ( | ) |
| METADATA | ( | "mysql.author" | , |
| "Oracle Corporation" | |||
| ) |
| METADATA | ( | "mysql.license" | , |
| "GPL" | |||
| ) |
| METADATA | ( | "test_property" | , |
| "1" | |||
| ) |
| mysql_service_status_t pfs_example_component_population_deinit | ( | ) |
Terminate the pfs_example_component_population at server shutdown or component deinstallation.
| 0 | success |
| non-zero | failure |
Call delete_tables function of pfs_plugin_table_v1 service to delete component tables from performance schema
| mysql_service_status_t pfs_example_component_population_init | ( | ) |
Initialize the pfs_example_component_population at server start or component installation.
| 0 | success |
| non-zero | failure |
Call add_table function of pfs_plugin_table_v1 service to add component tables in performance schema.
| REQUIRES_SERVICE_AS | ( | pfs_plugin_column_bigint_v1 | , |
| pc_bigint_srv | |||
| ) |
| REQUIRES_SERVICE_AS | ( | pfs_plugin_column_double_v1 | , |
| pc_double_srv | |||
| ) |
| REQUIRES_SERVICE_AS | ( | pfs_plugin_column_string_v2 | , |
| pc_string_srv | |||
| ) |
| REQUIRES_SERVICE_AS | ( | pfs_plugin_column_text_v1 | , |
| pc_text_srv | |||
| ) |
| REQUIRES_SERVICE_AS | ( | pfs_plugin_column_year_v1 | , |
| pc_year_srv | |||
| ) |
| REQUIRES_SERVICE_AS | ( | pfs_plugin_table_v1 | , |
| pt_srv | |||
| ) |
| REQUIRES_SERVICE_PLACEHOLDER_AS | ( | pfs_plugin_column_bigint_v1 | , |
| pc_bigint_srv | |||
| ) |
| REQUIRES_SERVICE_PLACEHOLDER_AS | ( | pfs_plugin_column_double_v1 | , |
| pc_double_srv | |||
| ) |
| REQUIRES_SERVICE_PLACEHOLDER_AS | ( | pfs_plugin_column_string_v2 | , |
| pc_string_srv | |||
| ) |
| REQUIRES_SERVICE_PLACEHOLDER_AS | ( | pfs_plugin_column_text_v1 | , |
| pc_text_srv | |||
| ) |
| REQUIRES_SERVICE_PLACEHOLDER_AS | ( | pfs_plugin_column_year_v1 | , |
| pc_year_srv | |||
| ) |
| REQUIRES_SERVICE_PLACEHOLDER_AS | ( | pfs_plugin_table_v1 | , |
| pt_srv | |||
| ) |
| Continent_record continent_array[] |
| Country_record country_array[] |
| const char* filename = "pfs_example_component_population.log" |
| char log_text[MAX_BUFFER_LENGTH] = {'\0'} |
| mysql_component_t mysql_component_pfs_example_component_population |
| FILE* outfile = nullptr |
| PFS_engine_table_share_proxy* share_list[2] = {nullptr, nullptr} |
| unsigned int share_list_count = 2 |