~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/serialize/table.proto

  • Committer: Brian Aker
  • Date: 2009-02-09 20:00:19 UTC
  • mfrom: (859.1.1 nofrm)
  • Revision ID: brian@tangent.org-20090209200019-fhik9eshxp0q08ii
Merge Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
  message Index {
136
136
 
137
137
    enum IndexType {
 
138
    /* Kept in sync with enum ha_key_alg if only for stewart's sanity. */
138
139
      UNKNOWN_INDEX = 0;
139
 
      HASH = 1;
140
 
      BTREE = 2;
 
140
      BTREE = 1;
 
141
      RTREE = 2;
 
142
      HASH  = 3;
 
143
      FULLTEXT = 4;
141
144
    }
142
145
 
143
146
    message IndexPart {
144
 
      required Field field = 1;
 
147
      required uint32 fieldnr = 1;
145
148
      optional int32 compare_length = 2;
146
149
      optional bool in_reverse_order = 3 [default = false];
147
150
    }
148
151
 
 
152
    message IndexOptions {
 
153
      optional bool pack_key = 1;
 
154
      optional bool binary_pack_key = 2;
 
155
      optional bool var_length_key = 3;
 
156
      optional bool null_part_key = 4;
 
157
      optional uint32 key_block_size = 5;
 
158
      optional bool has_partial_segments =6;
 
159
      optional bool auto_generated_key = 7;
 
160
    }      
 
161
 
149
162
    required string name = 1;
150
163
    required bool is_primary = 2;
151
164
    required bool is_unique = 3;
152
165
    required IndexType type = 4 [default = UNKNOWN_INDEX];
153
 
    repeated IndexPart index_part = 5;
154
 
    optional string comment = 6;
 
166
    required uint32 key_length = 5;
 
167
    repeated IndexPart index_part = 6;
 
168
    optional IndexOptions options= 7;
 
169
    optional string comment = 8;
155
170
  }
156
171
 
157
172
  required string name = 1;