~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.h

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
#include "drizzled/base.h"
30
30
 
 
31
namespace drizzled
 
32
{
 
33
 
31
34
class Session;
32
35
class TableList;
33
36
typedef struct st_ha_check_opt HA_CHECK_OPT;
41
44
static const uint32_t FN_FROM_IS_TMP(1 << 0);
42
45
static const uint32_t FN_TO_IS_TMP(1 << 0);
43
46
 
44
 
namespace drizzled { namespace message { class Table; } }
45
 
namespace drizzled { class TableIdentifier; }
 
47
namespace message { class Table; }
 
48
class TableIdentifier;
46
49
 
47
50
int mysql_rm_table_part2(Session *session, TableList *tables, bool if_exists,
48
51
                         bool drop_temporary);
50
53
                              bool if_exists, const char *db_name,
51
54
                              const char *table_name);
52
55
bool quick_rm_table(Session& session,
53
 
                    drizzled::TableIdentifier &identifier);
 
56
                    TableIdentifier &identifier);
54
57
void close_cached_table(Session *session, Table *table);
55
58
 
56
59
void wait_while_table_is_used(Session *session, Table *table,
70
73
 
71
74
bool is_primary_key(KEY *key_info);
72
75
const char* is_primary_key_name(const char* key_name);
73
 
bool check_engine(Session *, const char *, drizzled::message::Table *, HA_CREATE_INFO *);
 
76
bool check_engine(Session *, const char *, message::Table *, HA_CREATE_INFO *);
74
77
void set_table_default_charset(HA_CREATE_INFO *create_info, const char *db);
75
78
/*
76
79
  Preparation for table creation
99
102
*/
100
103
int mysql_prepare_create_table(Session *session,
101
104
                               HA_CREATE_INFO *create_info,
102
 
                               drizzled::message::Table *create_proto,
 
105
                               message::Table *create_proto,
103
106
                               AlterInfo *alter_info,
104
107
                               bool tmp_table,
105
108
                               uint32_t *db_options,
114
117
size_t build_table_filename(char *buff, size_t bufflen, const char *db,
115
118
                            const char *table_name, bool is_tmp);
116
119
 
 
120
} /* namespace drizzled */
 
121
 
117
122
#endif /* DRIZZLED_SQL_TABLE_H */