MySQL 9.1.0
Source Code Documentation
pfs_example_country.h File Reference

Go to the source code of this file.

Classes

class  Country_record
 
class  Country_POS
 
class  Country_index
 
class  Country_index_by_name
 
struct  Country_Table_Handle
 

Macros

#define COUNTRY_MAX_ROWS   10
 

Functions

PSI_table_handlecountry_open_table (PSI_pos **pos)
 Instantiate Country_Table_Handle at plugin code when corresponding table in performance schema is opened. More...
 
void country_close_table (PSI_table_handle *handle)
 Destroy the Country_Table_Handle at plugin code when corresponding table in performance schema is closed. More...
 
int country_rnd_next (PSI_table_handle *handle)
 
int country_rnd_init (PSI_table_handle *h, bool scan)
 
int country_rnd_pos (PSI_table_handle *handle)
 
int country_index_init (PSI_table_handle *handle, unsigned int idx, bool sorted, PSI_index_handle **index)
 
int country_index_read (PSI_index_handle *index, PSI_key_reader *reader, unsigned int idx, int find_flag)
 
int country_index_next (PSI_table_handle *handle)
 
void country_reset_position (PSI_table_handle *handle)
 
int country_read_column_value (PSI_table_handle *handle, PSI_field *field, unsigned int index)
 
int country_write_row_values (PSI_table_handle *handle)
 
int country_write_column_value (PSI_table_handle *handle, PSI_field *field, unsigned int index)
 
int country_update_row_values (PSI_table_handle *handle)
 
int country_update_column_value (PSI_table_handle *handle, PSI_field *field, unsigned int index)
 
int country_delete_row_values (PSI_table_handle *handle)
 
int country_delete_all_rows (void)
 
unsigned long long country_get_row_count (void)
 
void init_country_share (PFS_engine_table_share_proxy *share)
 

Variables

PFS_engine_table_share_proxy country_st_share
 
native_mutex_t LOCK_country_records_array
 
Country_record country_records_array [COUNTRY_MAX_ROWS]
 An array to keep rows of the tables. More...
 

Macro Definition Documentation

◆ COUNTRY_MAX_ROWS

#define COUNTRY_MAX_ROWS   10

Function Documentation

◆ country_close_table()

void country_close_table ( PSI_table_handle handle)

Destroy the Country_Table_Handle at plugin code when corresponding table in performance schema is closed.

◆ country_delete_all_rows()

int country_delete_all_rows ( void  )

◆ country_delete_row_values()

int country_delete_row_values ( PSI_table_handle handle)

◆ country_get_row_count()

unsigned long long country_get_row_count ( void  )

◆ country_index_init()

int country_index_init ( PSI_table_handle handle,
unsigned int  idx,
bool  sorted,
PSI_index_handle **  index 
)

◆ country_index_next()

int country_index_next ( PSI_table_handle handle)

◆ country_index_read()

int country_index_read ( PSI_index_handle index,
PSI_key_reader reader,
unsigned int  idx,
int  find_flag 
)

◆ country_open_table()

PSI_table_handle * country_open_table ( PSI_pos **  pos)

Instantiate Country_Table_Handle at plugin code when corresponding table in performance schema is opened.

◆ country_read_column_value()

int country_read_column_value ( PSI_table_handle handle,
PSI_field field,
unsigned int  index 
)

◆ country_reset_position()

void country_reset_position ( PSI_table_handle handle)

◆ country_rnd_init()

int country_rnd_init ( PSI_table_handle h,
bool  scan 
)

◆ country_rnd_next()

int country_rnd_next ( PSI_table_handle handle)

◆ country_rnd_pos()

int country_rnd_pos ( PSI_table_handle handle)

◆ country_update_column_value()

int country_update_column_value ( PSI_table_handle handle,
PSI_field field,
unsigned int  index 
)

◆ country_update_row_values()

int country_update_row_values ( PSI_table_handle handle)

◆ country_write_column_value()

int country_write_column_value ( PSI_table_handle handle,
PSI_field field,
unsigned int  index 
)

◆ country_write_row_values()

int country_write_row_values ( PSI_table_handle handle)

◆ init_country_share()

void init_country_share ( PFS_engine_table_share_proxy share)

Variable Documentation

◆ country_records_array

Country_record country_records_array[COUNTRY_MAX_ROWS]
extern

An array to keep rows of the tables.

When a row is inserted in plugin table, it will be stored here. When a row is queried from plugin table, it will be fetched from here.

◆ country_st_share

PFS_engine_table_share_proxy country_st_share
extern

◆ LOCK_country_records_array

native_mutex_t LOCK_country_records_array
extern