20 #ifndef INFINISQLDEFS_H
21 #define INFINISQLDEFS_H
33 #define BUILTIN_STATUS_OK 0
34 #define BUILTIN_STATUS_NOTOK 1
36 #define PAYLOADSIZE 128
37 #define NUMSOCKETS 1048576
43 #define MSGRECEIVEBATCHSIZE 500
44 #define OBGWMSGBATCHSIZE 5000
219 #define OPERAND_STRING 'a'
220 #define OPERAND_IDENTIFIER 'b'
221 #define OPERAND_PARAMETER 'c'
222 #define OPERAND_SUBQUERY 'd'
223 #define OPERAND_INTEGER 'e'
224 #define OPERAND_FLOAT 'f'
225 #define OPERAND_AGGREGATE 'g'
226 #define OPERAND_FIELDID 'h'
227 #define OPERAND_NULL 'i'
228 #define OPERAND_PREDICATERESULTS 'j'
229 #define OPERAND_SUBQUERYRESULTS 'k'
230 #define OPERAND_BOOLEAN 'l'
232 #define AGGREGATE_AVG 'a'
233 #define AGGREGATE_COUNT 'b'
234 #define AGGREGATE_MAX 'c'
235 #define AGGREGATE_MIN 'd'
236 #define AGGREGATE_SUM 'e'
239 #define BUILTINCREATESCHEMA 3
240 #define BUILTINCREATETABLE 4
241 #define BUILTINADDCOLUMN 5
242 #define BUILTINDELETEINDEX 6
243 #define BUILTINDELETETABLE 7
244 #define BUILTINDELETESCHEMA 8
245 #define BUILTINDUMPCONFIG 9
248 #define ST_USM 1 // waiting for user schema manager
249 #define ST_TASENGINES 2 // waiting for tas and engines to reply
258 using namespace CryptoPP;
259 using namespace msgpack;
264 using msgpack::sbuffer;
265 using boost::lexical_cast;
321 #define SERIALIZEDMAXSIZE 1048576
354 typedef struct __attribute__ ((__packed__))
366 boost::unordered_set<std::string>
locked;
406 typedef struct __attribute__ ((__packed__))
502 void debug(
char *,
int,
char *);
510 #define LOCKTYPEFLAG 3 // 0 is READLOCK 1 is WRITELOCK
511 #define REPLACEDELETEFLAG 4
692 #endif // INFINISQLDEFS_H