~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.h

  • Committer: Brian Aker
  • Date: 2009-08-15 00:59:30 UTC
  • mfrom: (1115.1.7 merge)
  • Revision ID: brian@gaz-20090815005930-q47yenjrq1esiwsz
Merge of Trond + Brian

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
 
{
 
26
#ifndef DRIZZLE_SERVER_SQL_TABLE_H
 
27
#define DRIZZLE_SERVER_SQL_TABLE_H
33
28
 
34
29
class Session;
35
30
class TableList;
36
31
typedef struct st_ha_check_opt HA_CHECK_OPT;
37
32
class Table;
38
 
typedef struct st_key KEY;
39
 
typedef struct st_ha_create_information HA_CREATE_INFO;
40
 
class AlterInfo;
41
 
class Cursor;
42
 
 
43
 
/* Flags for conversion functions. */
44
 
static const uint32_t FN_FROM_IS_TMP(1 << 0);
45
 
static const uint32_t FN_TO_IS_TMP(1 << 0);
46
 
 
47
 
namespace message { class Table; }
48
 
class TableIdentifier;
49
 
 
 
33
 
 
34
bool mysql_rm_table(Session *session,TableList *tables, bool if_exists,
 
35
                    bool drop_temporary);
50
36
int mysql_rm_table_part2(Session *session, TableList *tables, bool if_exists,
51
 
                         bool drop_temporary);
52
 
void write_bin_log_drop_table(Session *session,
53
 
                              bool if_exists, const char *db_name,
54
 
                              const char *table_name);
55
 
bool quick_rm_table(Session& session,
56
 
                    TableIdentifier &identifier);
 
37
                         bool drop_temporary, bool log_query);
 
38
bool quick_rm_table(StorageEngine *, const char *db,
 
39
                    const char *table_name, bool is_tmp);
57
40
void close_cached_table(Session *session, Table *table);
58
41
 
59
42
void wait_while_table_is_used(Session *session, Table *table,
60
43
                              enum ha_extra_function function);
61
 
 
62
44
bool mysql_checksum_table(Session* session, TableList* table_list,
63
45
                          HA_CHECK_OPT* check_opt);
64
46
bool mysql_check_table(Session* session, TableList* table_list,
68
50
bool mysql_optimize_table(Session* session, TableList* table_list,
69
51
                          HA_CHECK_OPT* check_opt);
70
52
 
71
 
void write_bin_log(Session *session,
72
 
                   char const *query);
 
53
void write_bin_log(Session *session, bool clear_error,
 
54
                   char const *query, size_t query_length);
73
55
 
74
56
bool is_primary_key(KEY *key_info);
75
57
const char* is_primary_key_name(const char* key_name);
76
 
bool check_engine(Session *, const char *, message::Table *, HA_CREATE_INFO *);
77
 
void set_table_default_charset(HA_CREATE_INFO *create_info, const char *db);
78
 
} /* namespace drizzled */
79
58
 
80
 
#endif /* DRIZZLED_SQL_TABLE_H */
 
59
#endif /* DRIZZLE_SERVER_SQL_TABLE_H */