pub enum Precedence {
Show 18 variants
Period,
DoubleColon,
AtTz,
MulDivModOp,
PlusMinus,
Xor,
Ampersand,
Caret,
Pipe,
Colon,
Between,
Eq,
Like,
Is,
PgOther,
UnaryNot,
And,
Or,
}Expand description
Operators for which precedence must be defined.
Higher number -> higher precedence. See expression parsing for how these values are used.
Member access operator . (highest precedence).
Postgres style type cast ::.
Timezone operator (e.g. AT TIME ZONE).
Multiplication / Division / Modulo operators (*, /, %).
Addition / Subtraction (+, -).
Bitwise XOR operator (^).
Bitwise AND operator (&).
Bitwise CARET (^) for some dialects.
Bitwise OR / pipe operator (|).
: operator for json/variant access.
BETWEEN operator.
Equality operator (=).
Pattern matching (LIKE).
IS operator (e.g. IS NULL).
Other Postgres-specific operators.
Unary NOT.
Logical AND.
Logical OR (lowest precedence).