24#ifndef TABLE_ACCOUNTS_H
25#define TABLE_ACCOUNTS_H
82 bool read_all)
override;
90 int index_init(uint idx,
bool sorted)
override;
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_accounts.h:55
PFS_key_host m_key_2
Definition: table_accounts.h:68
bool match(PFS_account *pfs) override
Definition: table_accounts.cc:81
PFS_key_user m_key_1
Definition: table_accounts.h:67
PFS_index_accounts_by_user_host()
Definition: table_accounts.h:57
~PFS_index_accounts_by_user_host() override=default
Definition: cursor_by_account.h:42
Definition: table_helper.h:1519
Definition: table_helper.h:1507
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Cursor CURSOR_BY_ACCOUNT.
Definition: cursor_by_account.h:56
Table PERFORMANCE_SCHEMA.ACCOUNTS.
Definition: table_accounts.h:72
int make_row(PFS_account *pfs) override
Definition: table_accounts.cc:127
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_accounts.cc:97
static PFS_engine_table_share m_share
Table share.
Definition: table_accounts.h:75
table_accounts()
Definition: table_accounts.cc:118
row_accounts m_row
Current row.
Definition: table_accounts.h:100
static int delete_all_rows()
Definition: table_accounts.cc:101
static Plugin_table m_table_def
Table definition.
Definition: table_accounts.h:98
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_accounts.cc:149
int index_init(uint idx, bool sorted) override
Definition: table_accounts.cc:120
static THR_LOCK m_table_lock
Table share lock.
Definition: table_accounts.h:96
~table_accounts() override=default
Cursor CURSOR_BY_ACCOUNT (declarations).
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Data types for columns used in the performance schema tables (declarations)
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
Row fragment for columns USER, HOST.
Definition: table_helper.h:552
Per account statistics.
Definition: pfs_account.h:67
Row fragment for connection statistics.
Definition: table_helper.h:1028
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.ACCOUNTS.
Definition: table_accounts.h:48
PFS_account_row m_account
Column USER, HOST.
Definition: table_accounts.h:50
PFS_connection_stat_row m_connection_stat
Columns CURRENT_CONNECTIONS, TOTAL_CONNECTIONS.
Definition: table_accounts.h:52
Helpers to implement a performance schema table.