1 |
|
2 | 'use strict';
|
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 | const Op = {
|
49 | eq: Symbol.for('eq'),
|
50 | ne: Symbol.for('ne'),
|
51 | gte: Symbol.for('gte'),
|
52 | gt: Symbol.for('gt'),
|
53 | lte: Symbol.for('lte'),
|
54 | lt: Symbol.for('lt'),
|
55 | not: Symbol.for('not'),
|
56 | is: Symbol.for('is'),
|
57 | in: Symbol.for('in'),
|
58 | notIn: Symbol.for('notIn'),
|
59 | like: Symbol.for('like'),
|
60 | notLike: Symbol.for('notLike'),
|
61 | iLike: Symbol.for('iLike'),
|
62 | notILike: Symbol.for('notILike'),
|
63 | startsWith: Symbol.for('startsWith'),
|
64 | endsWith: Symbol.for('endsWith'),
|
65 | substring: Symbol.for('substring'),
|
66 | regexp: Symbol.for('regexp'),
|
67 | notRegexp: Symbol.for('notRegexp'),
|
68 | iRegexp: Symbol.for('iRegexp'),
|
69 | notIRegexp: Symbol.for('notIRegexp'),
|
70 | between: Symbol.for('between'),
|
71 | notBetween: Symbol.for('notBetween'),
|
72 | overlap: Symbol.for('overlap'),
|
73 | contains: Symbol.for('contains'),
|
74 | contained: Symbol.for('contained'),
|
75 | adjacent: Symbol.for('adjacent'),
|
76 | strictLeft: Symbol.for('strictLeft'),
|
77 | strictRight: Symbol.for('strictRight'),
|
78 | noExtendRight: Symbol.for('noExtendRight'),
|
79 | noExtendLeft: Symbol.for('noExtendLeft'),
|
80 | and: Symbol.for('and'),
|
81 | or: Symbol.for('or'),
|
82 | any: Symbol.for('any'),
|
83 | all: Symbol.for('all'),
|
84 | values: Symbol.for('values'),
|
85 | col: Symbol.for('col'),
|
86 | placeholder: Symbol.for('placeholder'),
|
87 | join: Symbol.for('join')
|
88 | };
|
89 |
|
90 | module.exports = Op;
|