ReadonlyadjacentOperator -|- (PG range is adjacent to operator)
[Op.adjacent]: [1, 2]
In SQL
-|- [1, 2)
ReadonlyallOperator ALL
[Op.gt]: {
[Op.all]: literal('SELECT 1')
}
In SQL
> ALL (SELECT 1)
ReadonlyallOperator ?&
[Op.allKeysExist]: ['a', 'b']
In SQL
?& ARRAY['a', 'b']
ReadonlyandOperator AND
[Op.and]: {a: 5}
In SQL
AND (a = 5)
ReadonlyanyOperator 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'])
ReadonlyanyOperator ?|
[Op.anyKeyExists]: ['a', 'b']
In SQL
?| ARRAY['a', 'b']
ReadonlybetweenOperator BETWEEN
[Op.between]: [6, 10]
In SQL
BETWEEN 6 AND 10
ReadonlycolWith dialect specific column identifiers (PG in this example)
[Op.col]: 'user.organization_id'
In SQL
= "user"."organization_id"
ReadonlycontainedOperator <@ (PG array contained by operator)
[Op.contained]: [1, 2]
In SQL
<@ [1, 2)
ReadonlycontainsOperator @> (PG array contains operator)
[Op.contains]: [1, 2]
In SQL
@> [1, 2)
ReadonlyendsOperator LIKE
[Op.endsWith]: 'hat'
In SQL
LIKE '%hat'
ReadonlyeqOperator =
[Op.eq]: 3
In SQL
= 3
ReadonlygtOperator >
[Op.gt]: 6
In SQL
> 6
ReadonlygteOperator >=
[Op.gte]: 6
In SQL
>= 6
ReadonlyiOperator ILIKE (case insensitive) (PG only)
[Op.iLike]: '%hat'
In SQL
ILIKE '%hat'
ReadonlyinOperator IN
[Op.in]: [1, 2]
In SQL
IN [1, 2]
ReadonlyiOperator ~* (PG only)
[Op.iRegexp]: '^[h|a|t]'
In SQL
~* '^[h|a|t]'
ReadonlyisOperator IS
[Op.is]: null
In SQL
IS null
ReadonlyisOperator IS NOT
[Op.isNot]: null
In SQL
IS NOT null
ReadonlylikeOperator LIKE
[Op.like]: '%hat'
In SQL
LIKE '%hat'
ReadonlyltOperator <
[Op.lt]: 10
In SQL
< 10
ReadonlylteOperator <=
[Op.lte]: 10
In SQL
<= 10
ReadonlymatchOperator @@
[Op.match]: Sequelize.fn('to_tsquery', 'fat & rat')`
In SQL
@@ to_tsquery('fat & rat')
ReadonlyneOperator !=
[Op.ne]: 20
In SQL
!= 20
ReadonlynoOperator &> (PG range does not extend to the left of operator)
[Op.noExtendLeft]: [1, 2]
In SQL
&> [1, 2)
ReadonlynoOperator &< (PG range does not extend to the right of operator)
[Op.noExtendRight]: [1, 2]
In SQL
&< [1, 2)
ReadonlynotOperator NOT
[Op.not]: true
In SQL
IS NOT TRUE
ReadonlynotOperator NOT BETWEEN
[Op.notBetween]: [11, 15]
In SQL
NOT BETWEEN 11 AND 15
ReadonlynotOperator NOT LIKE
[Op.notEndsWith]: 'hat'
In SQL
NOT LIKE '%hat'
ReadonlynotILikeOperator NOT ILIKE (case insensitive) (PG only)
[Op.notILike]: '%hat'
In SQL
NOT ILIKE '%hat'
ReadonlynotOperator NOT IN
[Op.notIn]: [1, 2]
In SQL
NOT IN [1, 2]
ReadonlynotIRegexpOperator !~* (PG only)
[Op.notIRegexp]: '^[h|a|t]'
In SQL
!~* '^[h|a|t]'
ReadonlynotOperator NOT LIKE
[Op.notLike]: '%hat'
In SQL
NOT LIKE '%hat'
ReadonlynotOperator NOT REGEXP (MySQL/PG only)
[Op.notRegexp]: '^[h|a|t]'
In SQL
NOT REGEXP/!~ '^[h|a|t]'
ReadonlynotOperator NOT LIKE
[Op.notStartsWith]: 'hat'
In SQL
NOT LIKE 'hat%'
ReadonlynotOperator LIKE
[Op.notSubstring]: 'hat'
In SQL
NOT LIKE '%hat%'
ReadonlyorOperator OR
[Op.or]: [{a: 5}, {a: 6}]
In SQL
(a = 5 OR a = 6)
ReadonlyoverlapOperator && (PG array overlap operator)
[Op.overlap]: [1, 2]
In SQL
&& [1, 2)
ReadonlyregexpOperator REGEXP (MySQL/PG only)
[Op.regexp]: '^[h|a|t]'
In SQL
REGEXP/~ '^[h|a|t]'
ReadonlystartsOperator LIKE
[Op.startsWith]: 'hat'
In SQL
LIKE 'hat%'
ReadonlystrictOperator << (PG range strictly left of operator)
[Op.strictLeft]: [1, 2]
In SQL
<< [1, 2)
ReadonlystrictOperator >> (PG range strictly right of operator)
[Op.strictRight]: [1, 2]
In SQL
>> [1, 2)
ReadonlysubstringOperator LIKE
[Op.substring]: 'hat'
In SQL
LIKE '%hat%'
ReadonlyvaluesOperator 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.