OperatorType
Discriminates which operator an Operator node represents, set on its
_operatorType property by each concrete operator's constructor. Mostly relevant if you're
inspecting operator instances yourself (e.g. in a SerializerExtension, as
Match is designed to be used) rather than everyday query building.
import { OperatorType } from '@sqb/builder';
Members
| Member | Value | Set by |
|---|---|---|
and | 'and' | And |
or | 'or' | Or |
eq | 'eq' | Eq |
ne | 'ne' | Ne |
gt | 'gt' | Gt |
gte | 'gte' | Gte |
lt | 'lt' | Lt |
lte | 'lte' | Lte |
between | 'between' | Between |
notBetween | 'notBetween' | NotBetween |
in | 'in' | In |
notIn | 'notIn' | NotIn |
like | 'like' | Like |
notLike | 'notLike' | NotLike |
iLike | 'iLike' | ILike |
notILike | 'notILike' | NotILike |
is | 'is' | Is |
isNot | 'isNot' | IsNot |
exists | 'exists' | Exists |
notExists | 'notExists' | NotExists |
not | 'not' | Not |
match | 'match' | Match |
Note: this enum's member names don't always match the string keys accepted by the object-literal
shorthand or the Operators map (e.g. the enum has no separate member for 'between''s btw
alias — those are lookup keys, not operator-type tags). See
Operators and Conditions for the
shorthand key table.