~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.h

code clean move Item_func_num1 and Item_func_connection_id to functions directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
  Routines to drop, repair, optimize, analyze, and check a schema table
24
24
 
25
25
*/
26
 
#ifndef DRIZZLED_SQL_TABLE_H
27
 
#define DRIZZLED_SQL_TABLE_H
28
 
 
29
 
#include "drizzled/base.h"
30
 
 
31
 
namespace drizzled
32
 
{
33
 
 
34
 
class Session;
35
 
class TableList;
36
 
typedef struct st_ha_check_opt HA_CHECK_OPT;
37
 
class Table;
38
 
typedef struct st_ha_create_information HA_CREATE_INFO;
39
 
class AlterInfo;
40
 
class Cursor;
41
 
 
42
 
namespace message { class Table; }
43
 
class TableIdentifier;
44
 
 
45
 
int mysql_rm_table_part2(Session *session, TableList *tables, bool if_exists,
46
 
                         bool drop_temporary);
47
 
void write_bin_log_drop_table(Session *session,
48
 
                              bool if_exists, const char *db_name,
49
 
                              const char *table_name);
50
 
bool quick_rm_table(Session& session,
51
 
                    TableIdentifier &identifier);
52
 
void close_cached_table(Session *session, Table *table);
53
 
 
54
 
void wait_while_table_is_used(Session *session, Table *table,
 
26
#ifndef DRIZZLE_SERVER_SQL_TABLE_H
 
27
#define DRIZZLE_SERVER_SQL_TABLE_H
 
28
 
 
29
bool mysql_rm_table(THD *thd,TableList *tables, bool if_exists,
 
30
                    bool drop_temporary);
 
31
int mysql_rm_table_part2(THD *thd, TableList *tables, bool if_exists,
 
32
                         bool drop_temporary, bool drop_view, bool log_query);
 
33
bool quick_rm_table(handlerton *base,const char *db,
 
34
                    const char *table_name, uint32_t flags);
 
35
void close_cached_table(THD *thd, Table *table);
 
36
 
 
37
void wait_while_table_is_used(THD *thd, Table *table,
55
38
                              enum ha_extra_function function);
56
 
 
57
 
bool mysql_check_table(Session* session, TableList* table_list,
 
39
bool mysql_checksum_table(THD* thd, TableList* table_list,
 
40
                          HA_CHECK_OPT* check_opt);
 
41
bool mysql_check_table(THD* thd, TableList* table_list,
58
42
                       HA_CHECK_OPT* check_opt);
59
 
bool mysql_analyze_table(Session* session, TableList* table_list,
 
43
bool mysql_repair_table(THD* thd, TableList* table_list,
 
44
                        HA_CHECK_OPT* check_opt);
 
45
bool mysql_analyze_table(THD* thd, TableList* table_list,
60
46
                         HA_CHECK_OPT* check_opt);
61
 
bool mysql_optimize_table(Session* session, TableList* table_list,
 
47
bool mysql_optimize_table(THD* thd, TableList* table_list,
62
48
                          HA_CHECK_OPT* check_opt);
63
49
 
64
 
void write_bin_log(Session *session,
65
 
                   char const *query);
66
 
 
67
 
bool is_primary_key(KeyInfo *key_info);
68
 
const char* is_primary_key_name(const char* key_name);
69
 
bool check_engine(Session *, const char *, message::Table *, HA_CREATE_INFO *);
70
 
void set_table_default_charset(HA_CREATE_INFO *create_info, const char *db);
71
 
} /* namespace drizzled */
72
 
 
73
 
#endif /* DRIZZLED_SQL_TABLE_H */
 
50
bool mysql_assign_to_keycache(THD* thd, TableList* table_list,
 
51
                              LEX_STRING *key_cache_name);
 
52
bool mysql_preload_keys(THD* thd, TableList* table_list);
 
53
int reassign_keycache_tables(THD* thd, KEY_CACHE *src_cache,
 
54
                             KEY_CACHE *dst_cache);
 
55
 
 
56
#endif /* DRIZZLE_SERVER_SQL_TABLE_H */