~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.h

  • Committer: Brian Aker
  • Date: 2009-05-11 17:50:22 UTC
  • Revision ID: brian@gaz-20090511175022-y35q9ky6uh9ldcjt
Replacing Sun employee copyright headers (aka... anything done by a Sun
employee is copyright by Sun).

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#ifndef DRIZZLE_SERVER_SQL_TABLE_H
27
27
#define DRIZZLE_SERVER_SQL_TABLE_H
28
28
 
29
 
bool mysql_rm_table(THD *thd,TableList *tables, bool if_exists,
 
29
class Session;
 
30
class TableList;
 
31
typedef struct st_ha_check_opt HA_CHECK_OPT;
 
32
class Table;
 
33
typedef struct st_key_cache KEY_CACHE;
 
34
 
 
35
bool mysql_rm_table(Session *session,TableList *tables, bool if_exists,
30
36
                    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,
 
37
int mysql_rm_table_part2(Session *session, TableList *tables, bool if_exists,
 
38
                         bool drop_temporary, bool log_query);
 
39
bool quick_rm_table(StorageEngine *base,const char *db,
34
40
                    const char *table_name, uint32_t flags);
35
 
void close_cached_table(THD *thd, Table *table);
 
41
void close_cached_table(Session *session, Table *table);
36
42
 
37
 
void wait_while_table_is_used(THD *thd, Table *table,
 
43
void wait_while_table_is_used(Session *session, Table *table,
38
44
                              enum ha_extra_function function);
39
 
bool mysql_checksum_table(THD* thd, TableList* table_list,
 
45
bool mysql_checksum_table(Session* session, TableList* table_list,
40
46
                          HA_CHECK_OPT* check_opt);
41
 
bool mysql_check_table(THD* thd, TableList* table_list,
 
47
bool mysql_check_table(Session* session, TableList* table_list,
42
48
                       HA_CHECK_OPT* check_opt);
43
 
bool mysql_repair_table(THD* thd, TableList* table_list,
 
49
bool mysql_repair_table(Session* session, TableList* table_list,
44
50
                        HA_CHECK_OPT* check_opt);
45
 
bool mysql_analyze_table(THD* thd, TableList* table_list,
 
51
bool mysql_analyze_table(Session* session, TableList* table_list,
46
52
                         HA_CHECK_OPT* check_opt);
47
 
bool mysql_optimize_table(THD* thd, TableList* table_list,
 
53
bool mysql_optimize_table(Session* session, TableList* table_list,
48
54
                          HA_CHECK_OPT* check_opt);
49
55
 
50
 
bool mysql_assign_to_keycache(THD* thd, TableList* table_list,
 
56
bool mysql_assign_to_keycache(Session* session, TableList* table_list,
51
57
                              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,
 
58
bool mysql_preload_keys(Session* session, TableList* table_list);
 
59
int reassign_keycache_tables(Session* session, KEY_CACHE *src_cache,
54
60
                             KEY_CACHE *dst_cache);
 
61
void write_bin_log(Session *session, bool clear_error,
 
62
                   char const *query, size_t query_length);
 
63
 
 
64
bool is_primary_key(KEY *key_info);
 
65
const char* is_primary_key_name(const char* key_name);
55
66
 
56
67
#endif /* DRIZZLE_SERVER_SQL_TABLE_H */