MySQL 8.0.39
Source Code Documentation
pfs_example_employee_name.h File Reference

Go to the source code of this file.

Classes

struct  Ename_Record
 
class  Ename_POS
 
class  Ename_index
 
class  Ename_index_by_emp_num
 
class  Ename_index_by_emp_fname
 
struct  Ename_Table_Handle
 

Macros

#define EMPLOYEE_NAME_LEN   20 * 4
 
#define EMPLOYEEE_NAME_MAX_ROWS   100
 

Functions

PSI_table_handleename_open_table (PSI_pos **pos)
 Instantiate Ename_Table_Handle at plugin code when corresponding table in performance schema is opened. More...
 
void ename_close_table (PSI_table_handle *handle)
 Destroy the Ename_Table_Handle at plugin code when corresponding table in performance schema is closed. More...
 
int ename_rnd_next (PSI_table_handle *handle)
 
int ename_rnd_init (PSI_table_handle *h, bool scan)
 
int ename_rnd_pos (PSI_table_handle *handle)
 
int ename_index_init (PSI_table_handle *handle, uint idx, bool sorted, PSI_index_handle **index)
 
int ename_index_read (PSI_index_handle *index, PSI_key_reader *reader, unsigned int idx, int find_flag)
 
int ename_index_next (PSI_table_handle *handle)
 
void ename_reset_position (PSI_table_handle *handle)
 
int ename_read_column_value (PSI_table_handle *handle, PSI_field *field, uint index)
 
int ename_write_row_values (PSI_table_handle *handle)
 
int ename_write_column_value (PSI_table_handle *handle, PSI_field *field, unsigned int index)
 
int ename_update_row_values (PSI_table_handle *handle)
 
int ename_update_column_value (PSI_table_handle *handle, PSI_field *field, unsigned int index)
 
int ename_delete_row_values (PSI_table_handle *handle)
 
int ename_delete_all_rows (void)
 
unsigned long long ename_get_row_count (void)
 
void init_ename_share (PFS_engine_table_share_proxy *share)
 

Variables

const mysql_service_pfs_plugin_column_integer_v1_tcol_int_svc
 
const mysql_service_pfs_plugin_column_string_v2_tcol_string_svc
 
PFS_engine_table_share_proxy ename_st_share
 
mysql_mutex_t LOCK_ename_records_array
 
Ename_Record ename_records_array [EMPLOYEEE_NAME_MAX_ROWS]
 An array to keep rows of the tables. More...
 

Macro Definition Documentation

◆ EMPLOYEE_NAME_LEN

#define EMPLOYEE_NAME_LEN   20 * 4

◆ EMPLOYEEE_NAME_MAX_ROWS

#define EMPLOYEEE_NAME_MAX_ROWS   100

Function Documentation

◆ ename_close_table()

void ename_close_table ( PSI_table_handle handle)

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

◆ ename_delete_all_rows()

int ename_delete_all_rows ( void  )

◆ ename_delete_row_values()

int ename_delete_row_values ( PSI_table_handle handle)

◆ ename_get_row_count()

unsigned long long ename_get_row_count ( void  )

◆ ename_index_init()

int ename_index_init ( PSI_table_handle handle,
uint  idx,
bool  sorted,
PSI_index_handle **  index 
)

◆ ename_index_next()

int ename_index_next ( PSI_table_handle handle)

◆ ename_index_read()

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

◆ ename_open_table()

PSI_table_handle * ename_open_table ( PSI_pos **  pos)

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

◆ ename_read_column_value()

int ename_read_column_value ( PSI_table_handle handle,
PSI_field field,
uint  index 
)

◆ ename_reset_position()

void ename_reset_position ( PSI_table_handle handle)

◆ ename_rnd_init()

int ename_rnd_init ( PSI_table_handle h,
bool  scan 
)

◆ ename_rnd_next()

int ename_rnd_next ( PSI_table_handle handle)

◆ ename_rnd_pos()

int ename_rnd_pos ( PSI_table_handle handle)

◆ ename_update_column_value()

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

◆ ename_update_row_values()

int ename_update_row_values ( PSI_table_handle handle)

◆ ename_write_column_value()

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

◆ ename_write_row_values()

int ename_write_row_values ( PSI_table_handle handle)

◆ init_ename_share()

void init_ename_share ( PFS_engine_table_share_proxy share)

Variable Documentation

◆ col_int_svc

◆ col_string_svc

const mysql_service_pfs_plugin_column_string_v2_t* col_string_svc
extern

◆ ename_records_array

Ename_Record ename_records_array[EMPLOYEEE_NAME_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.

◆ ename_st_share

PFS_engine_table_share_proxy ename_st_share
extern

◆ LOCK_ename_records_array

mysql_mutex_t LOCK_ename_records_array
extern