24#ifndef TABLE_SETUP_ACTORS_H
25#define TABLE_SETUP_ACTORS_H
97 int rnd_pos(
const void *pos)
override;
104 bool read_all)
override;
107 unsigned char *new_buf,
Field **fields)
override;
110 Field **fields)
override;
Definition: pfs_engine_table.h:301
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_setup_actors.h:64
virtual bool match(PFS_setup_actor *pfs)
Definition: table_setup_actors.cc:79
PFS_key_role m_key_3
Definition: table_setup_actors.h:79
~PFS_index_setup_actors() override=default
PFS_key_host m_key_1
Definition: table_setup_actors.h:77
PFS_key_user m_key_2
Definition: table_setup_actors.h:78
PFS_index_setup_actors()
Definition: table_setup_actors.h:66
Definition: table_helper.h:1498
Definition: table_helper.h:1511
Definition: table_helper.h:1486
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.SETUP_ACTORS.
Definition: table_setup_actors.h:83
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_setup_actors.cc:186
int index_next() override
Find key in index, read record.
Definition: table_setup_actors.cc:223
int update_row_values(TABLE *table, const unsigned char *old_buf, unsigned char *new_buf, Field **fields) override
Update the current row values.
Definition: table_setup_actors.cc:299
static Plugin_table m_table_def
Table definition.
Definition: table_setup_actors.h:123
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_setup_actors.cc:262
static ha_rows get_row_count()
Definition: table_setup_actors.cc:174
int index_init(uint idx, bool sorted) override
Definition: table_setup_actors.cc:214
static PFS_engine_table_share m_share
Table share.
Definition: table_setup_actors.h:86
~table_setup_actors() override=default
table_setup_actors()
Definition: table_setup_actors.cc:178
static THR_LOCK m_table_lock
Table share lock.
Definition: table_setup_actors.h:121
row_setup_actors m_row
Current row.
Definition: table_setup_actors.h:126
static int write_row(PFS_engine_table *pfs_table, TABLE *table, unsigned char *buf, Field **fields)
Definition: table_setup_actors.cc:105
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_setup_actors.cc:181
int delete_row_values(TABLE *table, const unsigned char *buf, Field **fields) override
Delete a row.
Definition: table_setup_actors.cc:334
PFS_simple_index m_pos
Current position.
Definition: table_setup_actors.h:128
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_setup_actors.cc:201
static int delete_all_rows()
Definition: table_setup_actors.cc:172
int make_row(PFS_setup_actor *pfs)
Definition: table_setup_actors.cc:245
PFS_index_setup_actors * m_opened_index
Definition: table_setup_actors.h:133
PFS_simple_index m_next_pos
Next position.
Definition: table_setup_actors.h:130
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_setup_actors.cc:101
mysql_service_pfs_plugin_table_v1_t * pfs_table
Definition: log0pfs.cc:47
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1140
Common definition between mysql server & client.
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Definition: pfs_name.h:514
Definition: pfs_name.h:558
A setup_actor record.
Definition: pfs_setup_actor.h:59
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Definition: pfs_name.h:470
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.SETUP_ACTORS.
Definition: table_setup_actors.h:51
PFS_user_name m_user_name
Column USER.
Definition: table_setup_actors.h:55
bool * m_history_ptr
Column HISTORY.
Definition: table_setup_actors.h:61
bool * m_enabled_ptr
Column ENABLED.
Definition: table_setup_actors.h:59
PFS_host_name m_host_name
Column HOST.
Definition: table_setup_actors.h:53
PFS_role_name m_role_name
Column ROLE.
Definition: table_setup_actors.h:57
Helpers to implement a performance schema table.
unsigned int uint
Definition: uca9-dump.cc:75