23#ifndef SQL_HANDLER_INCLUDED
24#define SQL_HANDLER_INCLUDED
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:850
Sql_cmd_handler_close represents HANDLER CLOSE statement.
Definition: sql_handler.h:104
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_handler.h:110
~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:340
Sql_cmd_handler_open represents HANDLER OPEN statement.
Definition: sql_handler.h:45
Sql_cmd_handler_open()=default
bool execute(THD *thd) override
Execute a HANDLER OPEN statement.
Definition: sql_handler.cc:145
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_handler.h:51
~Sql_cmd_handler_open() override=default
Sql_cmd_handler_read represents HANDLER READ statement.
Definition: sql_handler.h:64
bool execute(THD *thd) override
Execute a HANDLER READ statement.
Definition: sql_handler.cc:384
enum ha_rkey_function m_rkey_mode
Type of condition for key values to be satisfied.
Definition: sql_handler.h:94
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:66
mem_root_deque< Item * > * m_key_expr
Key values to be satisfied.
Definition: sql_handler.h:91
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:88
~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:82
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_handler.h:76
Representation of an SQL command.
Definition: sql_cmd.h:64
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
A (partial) implementation of std::deque allocating its blocks on a MEM_ROOT.
Definition: mem_root_deque.h:109
This file includes constants used by all storage engines.
ha_rkey_function
Definition: my_base.h:77
enum_sql_command
Definition: my_sqlcommand.h:45
@ SQLCOM_HA_OPEN
Definition: my_sqlcommand.h:116
@ SQLCOM_HA_CLOSE
Definition: my_sqlcommand.h:117
@ SQLCOM_HA_READ
Definition: my_sqlcommand.h:118
const char * table_name
Definition: rules_table_service.cc:55
const char * db_name
Definition: rules_table_service.cc:54
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:836
void mysql_ha_cleanup(THD *thd)
Close all HANDLER's tables.
Definition: sql_handler.cc:985
enum_ha_read_modes
Definition: sql_handler.h:34
void mysql_ha_rm_temporary_tables(THD *thd)
Remove temporary tables from the HANDLER's hash table.
Definition: sql_handler.cc:948
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:866
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:1003
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:912
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:888