24#ifndef TABLE_KEYRING_KEYS_H
25#define TABLE_KEYRING_KEYS_H
63 int rnd_pos(
const void *pos)
override;
68 bool read_all)
override;
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.KEYRING_KEYS.
Definition: table_keyring_keys.h:53
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_keyring_keys.cc:115
bool copy_keys_from_keyring()
Copy the keys from the keyring vault.
Definition: table_keyring_keys.cc:240
static THR_LOCK s_table_lock
Table share lock.
Definition: table_keyring_keys.h:83
PFS_simple_index m_pos
Current position.
Definition: table_keyring_keys.h:78
row_keyring_keys * m_row
Current row.
Definition: table_keyring_keys.h:76
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_keyring_keys.cc:134
static Plugin_table s_table_def
Table definition.
Definition: table_keyring_keys.h:85
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_keyring_keys.cc:110
static PFS_engine_table_share s_share
Table share.
Definition: table_keyring_keys.h:56
static ha_rows get_row_count()
Definition: table_keyring_keys.cc:101
std::vector< row_keyring_keys > m_copy_keyring_keys
Safe copy of the keyring keys.
Definition: table_keyring_keys.h:73
table_keyring_keys()
Definition: table_keyring_keys.cc:89
PFS_simple_index m_next_pos
Next position.
Definition: table_keyring_keys.h:80
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_keyring_keys.cc:122
static PFS_engine_table * create(PFS_engine_table_share *)
Table builder.
Definition: table_keyring_keys.cc:85
my_off_t ha_rows
Definition: my_base.h:1141
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:567
Definition: thr_lock.h:139
A row of PERFORMANCE_SCHEMA.KEYRING_KEYS table.
Definition: table_keyring_keys.h:38
std::string m_key_id
Column KEY_ID.
Definition: table_keyring_keys.h:40
std::string m_backend_key_id
Column BACK_END_KEY_ID.
Definition: table_keyring_keys.h:44
std::string m_key_owner
Column KEY_OWNER.
Definition: table_keyring_keys.h:42
Helpers to implement a performance schema table.