~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/table.proto

  • Committer: mordred
  • Date: 2010-08-21 03:56:04 UTC
  • mto: (1725.1.5 build)
  • mto: This revision was merged to the branch mainline in revision 1726.
  • Revision ID: mordred@orisndriz09-20100821035604-da3nk2jsfti7o5d2
Added a valgrind suppression for the myisam keycache thing.

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
 
import "replication_options.proto";
12
8
 
13
9
message Table {
14
10
 
35
31
    optional bool checksum = 17;
36
32
    optional bool page_checksum = 18;
37
33
    optional bool delay_key_write = 19;
38
 
    optional bool dont_replicate = 20;
39
34
  }
40
35
 
41
36
  message ForeignKeyConstraint {
58
53
      OPTION_CASCADE = 2;
59
54
      OPTION_SET_NULL = 3;
60
55
      OPTION_NO_ACTION = 4;
61
 
      OPTION_SET_DEFAULT = 5;
 
56
      OPTION_DEFAULT = 5;
62
57
    }
63
58
 
64
59
    required ForeignKeyOption update_option = 6 [ default = OPTION_UNDEF ];
76
71
      BIGINT = 5;
77
72
      DECIMAL = 6;
78
73
      DATE = 7;
79
 
      EPOCH = 9;
 
74
      TIMESTAMP = 9;
80
75
      DATETIME = 10;
81
 
      UUID = 11;
82
 
      TIME = 12;
83
 
      BOOLEAN = 13;
84
76
    }
85
77
 
86
78
    message FieldOptions {
93
85
    }
94
86
 
95
87
    message FieldConstraints {
96
 
      optional bool is_nullable = 1 [default = true]; // Dead option, do not use
 
88
      required bool is_nullable = 1 [default = true];
97
89
      optional bool is_unsigned = 2 [default = false];
98
 
      optional bool is_notnull = 3 [default = false];
99
 
      optional bool is_unique = 4 [default = false];
100
90
      repeated string expression = 16; /* Reserve 0-15 for frequenty accessed attributes */
101
91
    }
102
92
 
119
109
      repeated string field_value = 4;
120
110
    }
121
111
 
122
 
    /*
123
 
      Do we store microseconds or timezone.
124
 
    */
125
 
    message TimeFieldOptions {
126
 
      optional bool microseconds = 1;
127
 
    }
128
 
 
129
112
    required string name = 1;
130
113
    required FieldType type = 2;
131
114
    optional FieldOptions options = 4;
132
115
    optional FieldConstraints constraints = 5;
133
116
    optional NumericFieldOptions numeric_options = 6;
134
117
    optional StringFieldOptions string_options = 7;
135
 
    optional TimeFieldOptions time_options = 8;
136
118
 
137
119
    optional string comment = 16; /* Reserve 0-15 for frequently accessed attributes */
138
120
    optional EnumerationValues enumeration_values = 17;
141
123
  message Index {
142
124
 
143
125
    enum IndexType {
144
 
    /* Kept in sync with enum ha_key_alg if only for stewart sanity. */
 
126
    /* Kept in sync with enum ha_key_alg if only for stewart's sanity. */
145
127
      UNKNOWN_INDEX = 0;
146
128
      BTREE = 1;
147
129
      RTREE = 2;
187
169
  required uint64 creation_timestamp= 11 [default = 0];
188
170
  required uint64 update_timestamp= 12 [default = 0];
189
171
  optional string catalog = 13;
190
 
  optional string uuid = 14;
191
 
  /*
192
 
    A version value of 0, means that it was never set.
193
 
    */
194
 
  optional uint64 version = 15;
195
 
 
196
 
  optional ReplicationOptions replication_options= 16;
197
172
}
198
173
 
199
174
message AlterTable {