不要怂,就是干,撸起袖子干!

Commit 14864d48 by Sushant

feat(operators): use global symbol registry

1 parent 1823f5d0
Showing with 37 additions and 37 deletions
...@@ -43,43 +43,43 @@ ...@@ -43,43 +43,43 @@
* @property join * @property join
*/ */
const Op = { const Op = {
eq: Symbol('eq'), eq: Symbol.for('eq'),
ne: Symbol('ne'), ne: Symbol.for('ne'),
gte: Symbol('gte'), gte: Symbol.for('gte'),
gt: Symbol('gt'), gt: Symbol.for('gt'),
lte: Symbol('lte'), lte: Symbol.for('lte'),
lt: Symbol('lt'), lt: Symbol.for('lt'),
not: Symbol('not'), not: Symbol.for('not'),
is: Symbol('is'), is: Symbol.for('is'),
in: Symbol('in'), in: Symbol.for('in'),
notIn: Symbol('notIn'), notIn: Symbol.for('notIn'),
like: Symbol('like'), like: Symbol.for('like'),
notLike: Symbol('notLike'), notLike: Symbol.for('notLike'),
iLike: Symbol('iLike'), iLike: Symbol.for('iLike'),
notILike: Symbol('notILike'), notILike: Symbol.for('notILike'),
regexp: Symbol('regexp'), regexp: Symbol.for('regexp'),
notRegexp: Symbol('notRegexp'), notRegexp: Symbol.for('notRegexp'),
iRegexp: Symbol('iRegexp'), iRegexp: Symbol.for('iRegexp'),
notIRegexp: Symbol('notIRegexp'), notIRegexp: Symbol.for('notIRegexp'),
between: Symbol('between'), between: Symbol.for('between'),
notBetween: Symbol('notBetween'), notBetween: Symbol.for('notBetween'),
overlap: Symbol('overlap'), overlap: Symbol.for('overlap'),
contains: Symbol('contains'), contains: Symbol.for('contains'),
contained: Symbol('contained'), contained: Symbol.for('contained'),
adjacent: Symbol('adjacent'), adjacent: Symbol.for('adjacent'),
strictLeft: Symbol('strictLeft'), strictLeft: Symbol.for('strictLeft'),
strictRight: Symbol('strictRight'), strictRight: Symbol.for('strictRight'),
noExtendRight: Symbol('noExtendRight'), noExtendRight: Symbol.for('noExtendRight'),
noExtendLeft: Symbol('noExtendLeft'), noExtendLeft: Symbol.for('noExtendLeft'),
and: Symbol('and'), and: Symbol.for('and'),
or: Symbol('or'), or: Symbol.for('or'),
any: Symbol('any'), any: Symbol.for('any'),
all: Symbol('all'), all: Symbol.for('all'),
values: Symbol('values'), values: Symbol.for('values'),
col: Symbol('col'), col: Symbol.for('col'),
placeholder: Symbol('placeholder'), placeholder: Symbol.for('placeholder'),
join: Symbol('join'), join: Symbol.for('join'),
raw: Symbol('raw') //deprecated remove by v5.0 raw: Symbol.for('raw') //deprecated remove by v5.0
}; };
const Aliases = { const Aliases = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!