-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathReQLprotodef.py
251 lines (238 loc) · 5 KB
/
ReQLprotodef.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
# DO NOT EDIT
# Autogenerated by convert_protofile
class VersionDummy:
class Version:
V0_1 = 1063369270
V0_2 = 1915781601
V0_3 = 1601562686
V0_4 = 1074539808
class Protocol:
PROTOBUF = 656407617
JSON = 2120839367
class Query:
class QueryType:
START = 1
CONTINUE = 2
STOP = 3
NOREPLY_WAIT = 4
class AssocPair:
pass
class Frame:
class FrameType:
POS = 1
OPT = 2
class Backtrace:
pass
class Response:
class ResponseType:
SUCCESS_ATOM = 1
SUCCESS_SEQUENCE = 2
SUCCESS_PARTIAL = 3
WAIT_COMPLETE = 4
CLIENT_ERROR = 16
COMPILE_ERROR = 17
RUNTIME_ERROR = 18
class ErrorType:
INTERNAL = 1000000
RESOURCE_LIMIT = 2000000
QUERY_LOGIC = 3000000
NON_EXISTENCE = 3100000
OP_FAILED = 4100000
OP_INDETERMINATE = 4200000
USER = 5000000
class ResponseNote:
SEQUENCE_FEED = 1
ATOM_FEED = 2
ORDER_BY_LIMIT_FEED = 3
UNIONED_FEED = 4
INCLUDES_STATES = 5
class Datum:
class DatumType:
R_NULL = 1
R_BOOL = 2
R_NUM = 3
R_STR = 4
R_ARRAY = 5
R_OBJECT = 6
R_JSON = 7
class AssocPair:
pass
class Term:
class TermType:
DATUM = 1
MAKE_ARRAY = 2
MAKE_OBJ = 3
VAR = 10
JAVASCRIPT = 11
UUID = 169
HTTP = 153
ERROR = 12
IMPLICIT_VAR = 13
DB = 14
TABLE = 15
GET = 16
GET_ALL = 78
EQ = 17
NE = 18
LT = 19
LE = 20
GT = 21
GE = 22
NOT = 23
ADD = 24
SUB = 25
MUL = 26
DIV = 27
MOD = 28
FLOOR = 183
CEIL = 184
ROUND = 185
APPEND = 29
PREPEND = 80
DIFFERENCE = 95
SET_INSERT = 88
SET_INTERSECTION = 89
SET_UNION = 90
SET_DIFFERENCE = 91
SLICE = 30
SKIP = 70
LIMIT = 71
OFFSETS_OF = 87
CONTAINS = 93
GET_FIELD = 31
KEYS = 94
OBJECT = 143
HAS_FIELDS = 32
WITH_FIELDS = 96
PLUCK = 33
WITHOUT = 34
MERGE = 35
BETWEEN_DEPRECATED = 36
BETWEEN = 182
REDUCE = 37
MAP = 38
FILTER = 39
CONCAT_MAP = 40
ORDER_BY = 41
DISTINCT = 42
COUNT = 43
IS_EMPTY = 86
UNION = 44
NTH = 45
BRACKET = 170
INNER_JOIN = 48
OUTER_JOIN = 49
EQ_JOIN = 50
ZIP = 72
RANGE = 173
INSERT_AT = 82
DELETE_AT = 83
CHANGE_AT = 84
SPLICE_AT = 85
COERCE_TO = 51
TYPE_OF = 52
UPDATE = 53
DELETE = 54
REPLACE = 55
INSERT = 56
DB_CREATE = 57
DB_DROP = 58
DB_LIST = 59
TABLE_CREATE = 60
TABLE_DROP = 61
TABLE_LIST = 62
CONFIG = 174
STATUS = 175
WAIT = 177
RECONFIGURE = 176
REBALANCE = 179
SYNC = 138
INDEX_CREATE = 75
INDEX_DROP = 76
INDEX_LIST = 77
INDEX_STATUS = 139
INDEX_WAIT = 140
INDEX_RENAME = 156
FUNCALL = 64
BRANCH = 65
OR = 66
AND = 67
FOR_EACH = 68
FUNC = 69
ASC = 73
DESC = 74
INFO = 79
MATCH = 97
UPCASE = 141
DOWNCASE = 142
SAMPLE = 81
DEFAULT = 92
JSON = 98
TO_JSON_STRING = 172
ISO8601 = 99
TO_ISO8601 = 100
EPOCH_TIME = 101
TO_EPOCH_TIME = 102
NOW = 103
IN_TIMEZONE = 104
DURING = 105
DATE = 106
TIME_OF_DAY = 126
TIMEZONE = 127
YEAR = 128
MONTH = 129
DAY = 130
DAY_OF_WEEK = 131
DAY_OF_YEAR = 132
HOURS = 133
MINUTES = 134
SECONDS = 135
TIME = 136
MONDAY = 107
TUESDAY = 108
WEDNESDAY = 109
THURSDAY = 110
FRIDAY = 111
SATURDAY = 112
SUNDAY = 113
JANUARY = 114
FEBRUARY = 115
MARCH = 116
APRIL = 117
MAY = 118
JUNE = 119
JULY = 120
AUGUST = 121
SEPTEMBER = 122
OCTOBER = 123
NOVEMBER = 124
DECEMBER = 125
LITERAL = 137
GROUP = 144
SUM = 145
AVG = 146
MIN = 147
MAX = 148
SPLIT = 149
UNGROUP = 150
RANDOM = 151
CHANGES = 152
ARGS = 154
BINARY = 155
GEOJSON = 157
TO_GEOJSON = 158
POINT = 159
LINE = 160
POLYGON = 161
DISTANCE = 162
INTERSECTS = 163
INCLUDES = 164
CIRCLE = 165
GET_INTERSECTING = 166
FILL = 167
GET_NEAREST = 168
POLYGON_SUB = 171
MINVAL = 180
MAXVAL = 181
class AssocPair:
pass