~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/table.proto

  • Committer: Paul McCullagh
  • Date: 2010-05-26 10:17:56 UTC
  • mto: (1567.1.3 new-staging)
  • mto: This revision was merged to the branch mainline in revision 1568.
  • Revision ID: paul.mccullagh@primebase.org-20100526101756-3qdwb9id3qhog0z1
Adjust for namespace changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
package drizzled.message;
5
5
option optimize_for = SPEED;
6
6
 
7
 
option java_package = "org.drizzle.messages";
8
 
option java_outer_classname = "TableMessage";
9
 
 
10
7
import "engine.proto";
11
8
 
12
9
message Table {
19
16
  }
20
17
 
21
18
  message TableOptions {
22
 
    optional bool has_user_set_auto_increment_value = 1;
 
19
    optional uint64 auto_increment = 1;
23
20
    optional string collation = 2;
24
21
    optional uint32 collation_id = 3;
25
22
    optional string data_file_name = 5;
34
31
    optional bool checksum = 17;
35
32
    optional bool page_checksum = 18;
36
33
    optional bool delay_key_write = 19;
 
34
 
 
35
    enum RowType {
 
36
         ROW_TYPE_DEFAULT = 0;
 
37
         ROW_TYPE_FIXED = 1;
 
38
         ROW_TYPE_DYNAMIC = 2;
 
39
         ROW_TYPE_COMPRESSED = 3;
 
40
         ROW_TYPE_REDUNDANT = 4;
 
41
         ROW_TYPE_COMPACT = 5;
 
42
         ROW_TYPE_PAGE = 6;
 
43
    }
 
44
 
 
45
    optional RowType row_type = 20;
37
46
  }
38
47
 
39
48
  message ForeignKeyConstraint {
40
 
    optional string name = 1;
41
 
    repeated string column_names = 2;
42
 
    required string references_table_name = 3;
43
 
    repeated string references_columns = 4;
44
 
 
45
 
    enum ForeignKeyMatchOption {
46
 
      MATCH_UNDEFINED = 0;
47
 
      MATCH_FULL = 1;
48
 
      MATCH_PARTIAL = 2;
49
 
      MATCH_SIMPLE = 3;
50
 
    }
51
 
    required ForeignKeyMatchOption match = 5;
52
 
 
53
 
    enum ForeignKeyOption {
54
 
      OPTION_UNDEF = 0;
55
 
      OPTION_RESTRICT = 1;
56
 
      OPTION_CASCADE = 2;
57
 
      OPTION_SET_NULL = 3;
58
 
      OPTION_NO_ACTION = 4;
59
 
      OPTION_SET_DEFAULT = 5;
60
 
    }
61
 
 
62
 
    required ForeignKeyOption update_option = 6 [ default = OPTION_UNDEF ];
63
 
    required ForeignKeyOption delete_option = 7 [ default = OPTION_UNDEF ];
 
49
    required string name = 1;
 
50
    required Field dependent = 2;
 
51
    required Field parent = 3;
 
52
    /** @TODO Finish this off... */
64
53
  }
65
54
 
66
55
  message Field {
76
65
      DATE = 7;
77
66
      TIMESTAMP = 9;
78
67
      DATETIME = 10;
79
 
      UUID = 11;
80
68
    }
81
69
 
82
70
    message FieldOptions {
84
72
      optional string update_value = 2;
85
73
      optional bool default_null = 3 [default = false];
86
74
      optional bytes default_bin_value = 4;
87
 
      optional string default_expression = 5;
88
 
      optional string update_expression = 6;
 
75
    }
 
76
 
 
77
    message TimestampFieldOptions {
 
78
      optional bool auto_updates = 1 [default = false];
89
79
    }
90
80
 
91
81
    message FieldConstraints {
122
112
 
123
113
    optional string comment = 16; /* Reserve 0-15 for frequently accessed attributes */
124
114
    optional EnumerationValues enumeration_values = 17;
 
115
    optional TimestampFieldOptions timestamp_options = 18;
125
116
  }
126
117
 
127
118
  message Index {
128
119
 
129
120
    enum IndexType {
130
 
    /* Kept in sync with enum ha_key_alg if only for stewart sanity. */
 
121
    /* Kept in sync with enum ha_key_alg if only for stewart's sanity. */
131
122
      UNKNOWN_INDEX = 0;
132
123
      BTREE = 1;
133
124
      RTREE = 2;
139
130
      required uint32 fieldnr = 1;
140
131
      optional uint32 compare_length = 2;
141
132
      optional bool in_reverse_order = 3 [default = false];
 
133
 
 
134
      optional uint32 key_type = 101; /* THIS MUST DIE. Along with pack_flag*/
142
135
    }
143
136
 
144
137
    message Options {
173
166
  required uint64 creation_timestamp= 11 [default = 0];
174
167
  required uint64 update_timestamp= 12 [default = 0];
175
168
  optional string catalog = 13;
176
 
  optional string uuid = 14;
177
 
  /*
178
 
    A version value of 0, means that it was never set.
179
 
    */
180
 
  optional uint64 version = 15;
181
169
}
182
170
 
183
171
message AlterTable {