Readonly
adjacentOperator -|- (PG range is adjacent to operator)
[Op.adjacent]: [1, 2]
In SQL
-|- [1, 2)
Readonly
allOperator ALL
[Op.gt]: {
[Op.all]: literal('SELECT 1')
}
In SQL
> ALL (SELECT 1)
Readonly
allOperator ?&
[Op.allKeysExist]: ['a', 'b']
In SQL
?& ARRAY['a', 'b']
Readonly
andOperator AND
[Op.and]: {a: 5}
In SQL
AND (a = 5)
Readonly
anyOperator ANY ARRAY (PG only)
[Op.any]: [2,3]
In SQL
ANY (ARRAY[2, 3]::INTEGER[])
Operator LIKE ANY ARRAY (also works for iLike and notLike)
[Op.like]: { [Op.any]: ['cat', 'hat']}
In SQL
LIKE ANY (ARRAY['cat', 'hat'])
Readonly
anyOperator ?|
[Op.anyKeyExists]: ['a', 'b']
In SQL
?| ARRAY['a', 'b']
Readonly
betweenOperator BETWEEN
[Op.between]: [6, 10]
In SQL
BETWEEN 6 AND 10
Readonly
colWith dialect specific column identifiers (PG in this example)
[Op.col]: 'user.organization_id'
In SQL
= "user"."organization_id"
Readonly
containedOperator <@ (PG array contained by operator)
[Op.contained]: [1, 2]
In SQL
<@ [1, 2)
Readonly
containsOperator @> (PG array contains operator)
[Op.contains]: [1, 2]
In SQL
@> [1, 2)
Readonly
endsOperator LIKE
[Op.endsWith]: 'hat'
In SQL
LIKE '%hat'
Readonly
eqOperator =
[Op.eq]: 3
In SQL
= 3
Readonly
gtOperator >
[Op.gt]: 6
In SQL
> 6
Readonly
gteOperator >=
[Op.gte]: 6
In SQL
>= 6
Readonly
iOperator ILIKE (case insensitive) (PG only)
[Op.iLike]: '%hat'
In SQL
ILIKE '%hat'
Readonly
iOperator ~* (PG only)
[Op.iRegexp]: '^[h|a|t]'
In SQL
~* '^[h|a|t]'
Readonly
inOperator IN
[Op.in]: [1, 2]
In SQL
IN [1, 2]
Readonly
isOperator IS
[Op.is]: null
In SQL
IS null
Readonly
isOperator IS NOT
[Op.isNot]: null
In SQL
IS NOT null
Readonly
likeOperator LIKE
[Op.like]: '%hat'
In SQL
LIKE '%hat'
Readonly
ltOperator <
[Op.lt]: 10
In SQL
< 10
Readonly
lteOperator <=
[Op.lte]: 10
In SQL
<= 10
Readonly
matchOperator @@
[Op.match]: Sequelize.fn('to_tsquery', 'fat & rat')`
In SQL
@@ to_tsquery('fat & rat')
Readonly
neOperator !=
[Op.ne]: 20
In SQL
!= 20
Readonly
noOperator &> (PG range does not extend to the left of operator)
[Op.noExtendLeft]: [1, 2]
In SQL
&> [1, 2)
Readonly
noOperator &< (PG range does not extend to the right of operator)
[Op.noExtendRight]: [1, 2]
In SQL
&< [1, 2)
Readonly
notOperator NOT
[Op.not]: true
In SQL
IS NOT TRUE
Readonly
notOperator NOT BETWEEN
[Op.notBetween]: [11, 15]
In SQL
NOT BETWEEN 11 AND 15
Readonly
notOperator NOT LIKE
[Op.notEndsWith]: 'hat'
In SQL
NOT LIKE '%hat'
Readonly
notILikeOperator NOT ILIKE (case insensitive) (PG only)
[Op.notILike]: '%hat'
In SQL
NOT ILIKE '%hat'
Readonly
notIRegexpOperator !~* (PG only)
[Op.notIRegexp]: '^[h|a|t]'
In SQL
!~* '^[h|a|t]'
Readonly
notOperator NOT IN
[Op.notIn]: [1, 2]
In SQL
NOT IN [1, 2]
Readonly
notOperator NOT LIKE
[Op.notLike]: '%hat'
In SQL
NOT LIKE '%hat'
Readonly
notOperator NOT REGEXP (MySQL/PG only)
[Op.notRegexp]: '^[h|a|t]'
In SQL
NOT REGEXP/!~ '^[h|a|t]'
Readonly
notOperator NOT LIKE
[Op.notStartsWith]: 'hat'
In SQL
NOT LIKE 'hat%'
Readonly
notOperator LIKE
[Op.notSubstring]: 'hat'
In SQL
NOT LIKE '%hat%'
Readonly
orOperator OR
[Op.or]: [{a: 5}, {a: 6}]
In SQL
(a = 5 OR a = 6)
Readonly
overlapOperator && (PG array overlap operator)
[Op.overlap]: [1, 2]
In SQL
&& [1, 2)
Readonly
regexpOperator REGEXP (MySQL/PG only)
[Op.regexp]: '^[h|a|t]'
In SQL
REGEXP/~ '^[h|a|t]'
Readonly
startsOperator LIKE
[Op.startsWith]: 'hat'
In SQL
LIKE 'hat%'
Readonly
strictOperator << (PG range strictly left of operator)
[Op.strictLeft]: [1, 2]
In SQL
<< [1, 2)
Readonly
strictOperator >> (PG range strictly right of operator)
[Op.strictRight]: [1, 2]
In SQL
>> [1, 2)
Readonly
substringOperator LIKE
[Op.substring]: 'hat'
In SQL
LIKE '%hat%'
Readonly
valuesOperator VALUES
[Op.values]: [4, 5, 6]
In SQL
VALUES (4), (5), (6)
This interface is the type of the Op object.
This type cannot be used directly, use Op instead.