24#ifndef SQL_HANDLER_INCLUDED
25#define SQL_HANDLER_INCLUDED
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:853
Sql_cmd_handler_close represents HANDLER CLOSE statement.
Definition: sql_handler.h:105
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_handler.h:111
~Sql_cmd_handler_close() override=default
Sql_cmd_handler_close()=default
bool execute(THD *thd) override
Execute a HANDLER CLOSE statement.
Definition: sql_handler.cc:341
Sql_cmd_handler_open represents HANDLER OPEN statement.
Definition: sql_handler.h:46
Sql_cmd_handler_open()=default
bool execute(THD *thd) override
Execute a HANDLER OPEN statement.
Definition: sql_handler.cc:146
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_handler.h:52
~Sql_cmd_handler_open() override=default
Sql_cmd_handler_read represents HANDLER READ statement.
Definition: sql_handler.h:65
bool execute(THD *thd) override
Execute a HANDLER READ statement.
Definition: sql_handler.cc:385
enum ha_rkey_function m_rkey_mode
Type of condition for key values to be satisfied.
Definition: sql_handler.h:95
Sql_cmd_handler_read(enum_ha_read_modes read_mode, const char *key_name, mem_root_deque< Item * > *key_expr, ha_rkey_function rkey_mode)
Definition: sql_handler.h:67
mem_root_deque< Item * > * m_key_expr
Key values to be satisfied.
Definition: sql_handler.h:92
const char * m_key_name
Name of key to be used for reading, NULL in cases when natural row-order is to be used.
Definition: sql_handler.h:89
~Sql_cmd_handler_read() override=default
enum_ha_read_modes m_read_mode
Read mode for HANDLER READ: FIRST, NEXT, LAST, ...
Definition: sql_handler.h:83
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_handler.h:77
Representation of an SQL command.
Definition: sql_cmd.h:65
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
A (partial) implementation of std::deque allocating its blocks on a MEM_ROOT.
Definition: mem_root_deque.h:110
This file includes constants used by all storage engines.
ha_rkey_function
Definition: my_base.h:78
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_HA_OPEN
Definition: my_sqlcommand.h:117
@ SQLCOM_HA_CLOSE
Definition: my_sqlcommand.h:118
@ SQLCOM_HA_READ
Definition: my_sqlcommand.h:119
const char * table_name
Definition: rules_table_service.cc:56
const char * db_name
Definition: rules_table_service.cc:55
Representation of an SQL command.
void mysql_ha_rm_tables(THD *thd, Table_ref *tables)
Remove matching tables from the HANDLER's hash table.
Definition: sql_handler.cc:837
void mysql_ha_cleanup(THD *thd)
Close all HANDLER's tables.
Definition: sql_handler.cc:986
enum_ha_read_modes
Definition: sql_handler.h:35
void mysql_ha_rm_temporary_tables(THD *thd)
Remove temporary tables from the HANDLER's hash table.
Definition: sql_handler.cc:949
void mysql_ha_flush_tables(THD *thd, Table_ref *all_tables)
Close cursors of matching tables from the HANDLER's hash table.
Definition: sql_handler.cc:867
void mysql_ha_set_explicit_lock_duration(THD *thd)
Set explicit duration for metadata locks corresponding to open HANDLERs to protect them from being re...
Definition: sql_handler.cc:1004
void mysql_ha_flush(THD *thd)
Flush (close and mark for re-open) all tables that should be should be reopen.
Definition: sql_handler.cc:913
void mysql_ha_flush_table(THD *thd, const char *db_name, const char *table_name)
Close cursors on the table from the HANDLER's hash.
Definition: sql_handler.cc:889