~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/serialize/table.proto

  • Committer: brian
  • Date: 2009-02-26 20:57:39 UTC
  • mfrom: (896.3.16 nofrm896)
  • mto: This revision was merged to the branch mainline in revision 901.
  • Revision ID: brian@bitters-20090226205739-yv4cbwna6myvkq22
Merge of Stewart + Jay's fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    enum FieldType {
77
77
      DOUBLE = 0;
78
78
      VARCHAR = 1;
79
 
      TEXT = 2;
80
 
      BLOB = 3;
81
 
      ENUM = 4;
82
 
      INTEGER = 5;
83
 
      BIGINT = 6;
84
 
      DECIMAL = 7;
85
 
      DATE = 8;
86
 
      TIME = 9;
87
 
      TIMESTAMP = 10;
88
 
      DATETIME = 11;
89
 
      TINYINT = 12;
90
 
      VIRTUAL = 13;
 
79
      BLOB = 2;
 
80
      ENUM = 3;
 
81
      INTEGER = 4;
 
82
      BIGINT = 5;
 
83
      DECIMAL = 6;
 
84
      DATE = 7;
 
85
      TIME = 8;
 
86
      TIMESTAMP = 9;
 
87
      DATETIME = 10;
 
88
      TINYINT = 11;
 
89
      VIRTUAL = 12;
91
90
    }
92
91
 
93
92
    enum FieldFormatType {
99
98
    message FieldOptions {
100
99
      optional string default_value = 1;
101
100
      optional string update_value = 2;
 
101
      optional bool default_null = 3 [default = false];
 
102
      optional bytes default_bin_value = 4;
 
103
 
 
104
      optional int32 length = 100; /* TODO: should go away */
102
105
    }
103
106
 
104
107
    message TimestampFieldOptions {
127
130
 
128
131
    message SetFieldOptions {
129
132
      required int32 count_elements = 1;
130
 
      repeated string field_value = 2;
 
133
      optional uint32 collation_id = 2;
 
134
      optional string collation = 3;
 
135
      repeated string field_value = 4;
131
136
    }
132
137
 
133
138
    message VirtualFieldOptions {
149
154
    optional string comment = 16; /* Reserve 0-15 for frequently accessed attributes */
150
155
    optional SetFieldOptions set_options = 17;
151
156
    optional TimestampFieldOptions timestamp_options = 18;
 
157
 
 
158
    optional uint32 pack_flag = 100; /* MUST DIE */
152
159
  }
153
160
 
154
161
  message Index {
166
173
      required uint32 fieldnr = 1;
167
174
      optional int32 compare_length = 2;
168
175
      optional bool in_reverse_order = 3 [default = false];
 
176
 
 
177
      optional uint32 key_type = 101; /* THIS MUST DIE. Along with pack_flag*/
169
178
    }
170
179
 
171
180
    message IndexOptions {