~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/table.proto

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2011-01-22 03:22:44 UTC
  • mfrom: (2101 staging)
  • mto: (2228.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2230.
  • Revision ID: barry.leslie@primebase.com-20110122032244-ukbe3mlj7fs8xph6
Merged with lp:drizzle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
      BIGINT = 5;
75
75
      DECIMAL = 6;
76
76
      DATE = 7;
77
 
      TIMESTAMP = 9;
 
77
      EPOCH = 9;
78
78
      DATETIME = 10;
 
79
      UUID = 11;
 
80
      TIME = 12;
 
81
      BOOLEAN = 13;
79
82
    }
80
83
 
81
84
    message FieldOptions {
88
91
    }
89
92
 
90
93
    message FieldConstraints {
91
 
      required bool is_nullable = 1 [default = true];
 
94
      optional bool is_nullable = 1 [default = true]; // Dead option, do not use
92
95
      optional bool is_unsigned = 2 [default = false];
 
96
      optional bool is_notnull = 3 [default = false];
93
97
      repeated string expression = 16; /* Reserve 0-15 for frequenty accessed attributes */
94
98
    }
95
99
 
112
116
      repeated string field_value = 4;
113
117
    }
114
118
 
 
119
    /*
 
120
      Do we store microseconds or timezone.
 
121
    */
 
122
    message TimeFieldOptions {
 
123
      optional bool microseconds = 1;
 
124
    }
 
125
 
115
126
    required string name = 1;
116
127
    required FieldType type = 2;
117
128
    optional FieldOptions options = 4;
118
129
    optional FieldConstraints constraints = 5;
119
130
    optional NumericFieldOptions numeric_options = 6;
120
131
    optional StringFieldOptions string_options = 7;
 
132
    optional TimeFieldOptions time_options = 8;
121
133
 
122
134
    optional string comment = 16; /* Reserve 0-15 for frequently accessed attributes */
123
135
    optional EnumerationValues enumeration_values = 17;