26
26
#ifndef DRIZZLE_SERVER_SQL_TABLE_H
27
27
#define DRIZZLE_SERVER_SQL_TABLE_H
29
bool mysql_rm_table(Session *thd,TableList *tables, bool if_exists,
29
bool mysql_rm_table(Session *session,TableList *tables, bool if_exists,
30
30
bool drop_temporary);
31
int mysql_rm_table_part2(Session *thd, TableList *tables, bool if_exists,
31
int mysql_rm_table_part2(Session *session, TableList *tables, bool if_exists,
32
32
bool drop_temporary, bool drop_view, bool log_query);
33
33
bool quick_rm_table(handlerton *base,const char *db,
34
34
const char *table_name, uint32_t flags);
35
void close_cached_table(Session *thd, Table *table);
35
void close_cached_table(Session *session, Table *table);
37
void wait_while_table_is_used(Session *thd, Table *table,
37
void wait_while_table_is_used(Session *session, Table *table,
38
38
enum ha_extra_function function);
39
bool mysql_checksum_table(Session* thd, TableList* table_list,
39
bool mysql_checksum_table(Session* session, TableList* table_list,
40
40
HA_CHECK_OPT* check_opt);
41
bool mysql_check_table(Session* thd, TableList* table_list,
41
bool mysql_check_table(Session* session, TableList* table_list,
42
42
HA_CHECK_OPT* check_opt);
43
bool mysql_repair_table(Session* thd, TableList* table_list,
43
bool mysql_repair_table(Session* session, TableList* table_list,
44
44
HA_CHECK_OPT* check_opt);
45
bool mysql_analyze_table(Session* thd, TableList* table_list,
45
bool mysql_analyze_table(Session* session, TableList* table_list,
46
46
HA_CHECK_OPT* check_opt);
47
bool mysql_optimize_table(Session* thd, TableList* table_list,
47
bool mysql_optimize_table(Session* session, TableList* table_list,
48
48
HA_CHECK_OPT* check_opt);
50
bool mysql_assign_to_keycache(Session* thd, TableList* table_list,
50
bool mysql_assign_to_keycache(Session* session, TableList* table_list,
51
51
LEX_STRING *key_cache_name);
52
bool mysql_preload_keys(Session* thd, TableList* table_list);
53
int reassign_keycache_tables(Session* thd, KEY_CACHE *src_cache,
52
bool mysql_preload_keys(Session* session, TableList* table_list);
53
int reassign_keycache_tables(Session* session, KEY_CACHE *src_cache,
54
54
KEY_CACHE *dst_cache);
56
56
#endif /* DRIZZLE_SERVER_SQL_TABLE_H */