~stewart/drizzle/embedded-innodb-create-table-with-index

« back to all changes in this revision

Viewing changes to drizzled/table_proto.h

  • Committer: Stewart Smith
  • Date: 2010-03-11 01:15:57 UTC
  • mfrom: (1319.1.29)
  • Revision ID: stewart@flamingspork.com-20100311011557-49r2ye69bqh4abti
Merged embedded-innodb-rnd-read into embedded-innodb-create-table-with-index.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define DRIZZLED_TABLE_PROTO_H
23
23
 
24
24
namespace drizzled {
 
25
/*
 
26
  Maximum length of comments.
25
27
 
26
 
int drizzle_write_proto_file(const std::string file_name,
27
 
                             message::Table *table_proto);
 
28
  These are historical limits that no longer need to apply.
 
29
*/
 
30
#define TABLE_COMMENT_MAXLEN 2048
 
31
#define COLUMN_COMMENT_MAXLEN 1024
 
32
#define INDEX_COMMENT_MAXLEN 1024
28
33
 
29
34
int parse_table_proto(Session& session,
30
35
                      message::Table &table,
31
36
                      TableShare *share);
32
37
 
33
 
int fill_table_proto(message::Table *table_proto,
34
 
                     const char *table_name,
35
 
                     List<CreateField> &create_fields,
36
 
                     HA_CREATE_INFO *create_info,
37
 
                     uint32_t keys,
38
 
                     KEY *key_info);
39
 
 
40
38
int rename_table_proto_file(const char *from, const char* to);
 
39
 
41
40
int delete_table_proto_file(const char *file_name);
42
41
 
43
42
int rea_create_table(Session *session,
44
43
                     TableIdentifier &identifier,
45
 
                     message::Table *table_proto,
 
44
                     message::Table &table_proto,
46
45
                     HA_CREATE_INFO *create_info,
47
46
                     List<CreateField> &create_field,
48
47
                     uint32_t key_count,KEY *key_info);