MySQL 8.0.29
Source Code Documentation
table_helper.h File Reference

Helpers to implement a performance schema table. More...

Go to the source code of this file.

Classes

struct  PFS_instrument_view_constants
 Name space, internal views used within table setup_instruments. More...
 
struct  PFS_object_view_constants
 Name space, internal views used within object summaries. More...
 
struct  PFS_host_row
 Row fragment for column HOST. More...
 
struct  PFS_user_row
 Row fragment for column USER. More...
 
struct  PFS_account_row
 Row fragment for columns USER, HOST. More...
 
struct  PFS_digest_row
 Row fragment for columns DIGEST, DIGEST_TEXT. More...
 
struct  PFS_event_name_row
 Row fragment for column EVENT_NAME. More...
 
struct  PFS_object_row
 Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME. More...
 
struct  PFS_column_row
 Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME, COLUMN_NAME. More...
 
struct  PFS_index_row
 Row fragment for columns OBJECT_TYPE, SCHEMA_NAME, OBJECT_NAME, INDEX_NAME. More...
 
struct  PFS_stat_row
 Row fragment for single statistics columns (COUNT, SUM, MIN, AVG, MAX) More...
 
struct  PFS_byte_stat_row
 Row fragment for timer and byte count stats. More...
 
struct  PFS_table_io_stat_row
 Row fragment for table I/O statistics columns. More...
 
struct  PFS_table_lock_stat_row
 Row fragment for table lock statistics columns. More...
 
struct  PFS_stage_stat_row
 Row fragment for stage statistics columns. More...
 
struct  PFS_statement_stat_row
 Row fragment for statement statistics columns. More...
 
struct  PFS_sp_stat_row
 Row fragment for stored program statistics. More...
 
struct  PFS_transaction_stat_row
 Row fragment for transaction statistics columns. More...
 
struct  PFS_error_stat_row
 Row fragment for error statistics columns. More...
 
struct  PFS_connection_stat_row
 Row fragment for connection statistics. More...
 
struct  PFS_socket_io_stat_row
 Row fragment for socket I/O statistics columns. More...
 
struct  PFS_file_io_stat_row
 Row fragment for file I/O statistics columns. More...
 
struct  PFS_memory_stat_row
 Row fragment for memory statistics columns. More...
 
struct  PFS_variable_name_row
 
struct  PFS_variable_value_row
 
struct  PFS_user_variable_value_row
 
class  PFS_key_long
 
class  PFS_key_ulong
 
class  PFS_key_longlong
 
class  PFS_key_ulonglong
 
class  PFS_key_thread_id
 
class  PFS_key_event_id
 
class  PFS_key_processlist_id
 
class  PFS_key_engine_transaction_id
 
class  PFS_key_thread_os_id
 
class  PFS_key_statement_id
 
class  PFS_key_worker_id
 
class  PFS_key_socket_id
 
class  PFS_key_port
 
class  PFS_key_error_number
 
class  PFS_key_pstring
 
class  PFS_key_string< SIZE >
 
class  PFS_key_thread_name
 
class  PFS_key_event_name
 
class  PFS_key_user
 
class  PFS_key_host
 
class  PFS_key_role
 
class  PFS_key_schema
 
class  PFS_key_digest
 
class  PFS_key_bucket_number
 
class  PFS_key_name
 
class  PFS_key_group_name
 
class  PFS_key_variable_name
 
class  PFS_key_engine_name
 
class  PFS_key_engine_lock_id
 
class  PFS_key_ip
 
class  PFS_key_statement_name
 
class  PFS_key_file_name
 
class  PFS_key_object_schema
 
class  PFS_key_object_name
 
class  PFS_key_column_name
 
class  PFS_key_object_type
 
class  PFS_key_object_type_enum
 
class  PFS_key_object_instance
 

Functions

void set_field_tiny (Field *f, long value)
 Helper, assign a value to a tinyint field. More...
 
void set_field_utiny (Field *f, ulong value)
 Helper, assign a value to a unsigned tinyint field. More...
 
long get_field_tiny (Field *f)
 Helper, read a value from an tinyint field. More...
 
ulong get_field_utiny (Field *f)
 
void set_field_short (Field *f, long value)
 Helper, assign a value to a short field. More...
 
void set_field_ushort (Field *f, ulong value)
 Helper, assign a value to a unsigned short field. More...
 
long get_field_short (Field *f)
 Helper, read a value from an smallint field. More...
 
ulong get_field_ushort (Field *f)
 
void set_field_medium (Field *f, long value)
 Helper, assign a value to a medium field. More...
 
void set_field_umedium (Field *f, ulong value)
 Helper, assign a value to a unsigned medium field. More...
 
long get_field_medium (Field *f)
 Helper, read a value from an mediumint field. More...
 
ulong get_field_umedium (Field *f)
 
void set_field_long (Field *f, long value)
 Helper, assign a value to a long field. More...
 
void set_field_ulong (Field *f, ulong value)
 Helper, assign a value to a ulong field. More...
 
long get_field_long (Field *f)
 Helper, read a value from a long field. More...
 
ulong get_field_ulong (Field *f)
 
void set_field_longlong (Field *f, longlong value)
 Helper, assign a value to a longlong field. More...
 
void set_field_ulonglong (Field *f, ulonglong value)
 Helper, assign a value to a ulonglong field. More...
 
longlong get_field_longlong (Field *f)
 
ulonglong get_field_ulonglong (Field *f)
 Helper, read a value from an ulonglong field. More...
 
void set_field_decimal (Field *f, double value)
 Helper, assign a value to a decimal field. More...
 
double get_field_decimal (Field *f)
 Helper, read a value from a decimal field. More...
 
void set_field_float (Field *f, double value)
 Helper, assign a value to a float field. More...
 
double get_field_float (Field *f)
 Helper, read a value from a float field. More...
 
void set_field_double (Field *f, double value)
 Helper, assign a value to a double field. More...
 
double get_field_double (Field *f)
 Helper, read a value from a double field. More...
 
void set_field_char_utf8 (Field *f, const char *str, uint len)
 Helper, assign a value to a. More...
 
char * get_field_char_utf8 (Field *f, char *val, uint *len)
 Helper, read a value from a. More...
 
Stringget_field_char_utf8 (Field *f, String *val)
 Helper, read a value from a. More...
 
void set_field_varchar (Field *f, const CHARSET_INFO *cs, const char *str, uint len)
 Helper, assign a value to a. More...
 
void set_field_varchar_utf8 (Field *f, const char *str)
 Helper, assign a value to a. More...
 
void set_field_varchar_utf8 (Field *f, const char *str, size_t len)
 Helper, assign a value to a. More...
 
Stringget_field_varchar_utf8 (Field *f, String *val)
 Helper, read a value from a. More...
 
char * get_field_varchar_utf8 (Field *f, char *val, uint *len)
 Helper, read a value from a. More...
 
void set_field_varchar_utf8mb4 (Field *f, const char *str)
 Helper, assign a value to a. More...
 
void set_field_varchar_utf8mb4 (Field *f, const char *str, uint len)
 Helper, assign a value to a. More...
 
void set_field_blob (Field *f, const char *val, size_t len)
 Helper, assign a value to a text/blob field. More...
 
void set_field_text (Field *f, const char *val, size_t len, const CHARSET_INFO *cs)
 Helper, assign a value to a text field. More...
 
char * get_field_blob (Field *f, char *val, uint *len)
 Helper, read a value from a blob field. More...
 
void set_field_enum (Field *f, ulonglong value)
 Helper, assign a value to an enum field. More...
 
ulonglong get_field_enum (Field *f)
 Helper, read a value from an enum field. More...
 
void set_field_set (Field *f, ulonglong value)
 Helper, assign a value to a set field. More...
 
ulonglong get_field_set (Field *f)
 Helper, read a value from a set field. More...
 
void set_field_date (Field *f, const char *value, uint len)
 Helper, assign a value to a date field. More...
 
char * get_field_date (Field *f, char *val, uint *len)
 Helper, read a value from an date field. More...
 
void set_field_time (Field *f, const char *value, uint len)
 Helper, assign a value to a time field. More...
 
char * get_field_time (Field *f, char *val, uint *len)
 Helper, read a value from an time field. More...
 
void set_field_datetime (Field *f, const char *value, uint len)
 Helper, assign a value to a datetime field. More...
 
char * get_field_datetime (Field *f, char *val, uint *len)
 Helper, read a value from an datetime field. More...
 
void set_field_timestamp (Field *f, ulonglong value)
 Helper, assign a value to a timestamp field. More...
 
void set_field_timestamp (Field *f, const char *value, uint len)
 Helper, assign a value to a timestamp field. More...
 
char * get_field_timestamp (Field *f, char *val, uint *len)
 Helper, read a value from an timestamp field. More...
 
void set_field_year (Field *f, ulong value)
 Helper, assign a value to a year field. More...
 
ulong get_field_year (Field *f)
 Helper, read a value from an year field. More...
 
void set_field_json (Field *f, const Json_wrapper *json)
 Helper, assign a value to a JSON field. More...
 
void set_nullable_field_schema_name (Field *f, const PFS_schema_name *schema)
 
void set_field_schema_name (Field *f, const PFS_schema_name *schema)
 
void set_nullable_field_object_name (Field *f, const PFS_object_name *object)
 
void set_field_object_name (Field *f, const PFS_object_name *object)
 
void set_nullable_field_routine_name (Field *f, const PFS_routine_name *object)
 
void set_field_routine_name (Field *f, const PFS_routine_name *object)
 
void format_sqltext (const char *source_sqltext, size_t source_length, const CHARSET_INFO *source_cs, bool truncated, String &sqltext)
 Helper, format sql text for output. More...
 
void make_source_column (const char *source_file, size_t source_line, char row_buffer[], size_t row_buffer_size, uint &row_length)
 Create a SOURCE column from source file and line. More...
 
void set_field_object_type (Field *f, enum_object_type object_type)
 
void set_field_lock_type (Field *f, PFS_TL_LOCK_TYPE lock_type)
 
void set_field_mdl_type (Field *f, opaque_mdl_type mdl_type)
 
void set_field_mdl_duration (Field *f, opaque_mdl_duration mdl_duration)
 
void set_field_mdl_status (Field *f, opaque_mdl_status mdl_status)
 
void set_field_isolation_level (Field *f, enum_isolation_level iso_level)
 
void set_field_xa_state (Field *f, enum_xa_transaction_state xa_state)
 

Detailed Description

Helpers to implement a performance schema table.

Performance schema table helpers (declarations).