16 #ifndef SQL_HANDLER_INCLUDED
17 #define SQL_HANDLER_INCLUDED
19 #include "sql_class.h"
44 return SQLCOM_HA_OPEN;
65 ha_rkey_function rkey_mode)
66 : m_read_mode(read_mode), m_key_name(key_name), m_key_expr(key_expr),
67 m_rkey_mode(rkey_mode)
75 return SQLCOM_HA_READ;
82 enum enum_ha_read_modes m_read_mode;
88 const char *m_key_name;
94 enum ha_rkey_function m_rkey_mode;
116 return SQLCOM_HA_CLOSE;
119 virtual bool execute(THD *thd);
123 void mysql_ha_flush(THD *thd);
124 void mysql_ha_flush_tables(THD *thd,
TABLE_LIST *all_tables);
125 void mysql_ha_rm_tables(THD *thd,
TABLE_LIST *tables);
126 void mysql_ha_cleanup(THD *thd);
127 void mysql_ha_set_explicit_lock_duration(THD *thd);
129 typedef bool Log_func(THD*,
TABLE*,
bool,
130 const uchar*,
const uchar*);
133 const uchar *before_record,
134 const uchar *after_record,