22
22
#define DRIZZLED_TABLE_PROTO_H
24
24
namespace drizzled {
26
Maximum length of comments.
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.
30
#define TABLE_COMMENT_MAXLEN 2048
31
#define COLUMN_COMMENT_MAXLEN 1024
32
#define INDEX_COMMENT_MAXLEN 1024
29
34
int parse_table_proto(Session& session,
30
35
message::Table &table,
31
36
TableShare *share);
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,
40
38
int rename_table_proto_file(const char *from, const char* to);
41
40
int delete_table_proto_file(const char *file_name);
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);