1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
/// Represents a binary operator in an SQL expression. #[derive(Debug, Clone, PartialEq)] pub enum BinOpKind { /// Equality operator (`=`). Eq, /// Inequality operator (`!=` or `<>`). Ne, /// Less-than operator (`<`). Lt, /// Less-than-or-equal operator (`<=`). Le, /// Greater-than operator (`>`). Gt, /// Greater-than-or-equal operator (`>=`). Ge, /// Addition operator (`+`). Add, /// Subtraction operator (`-`). Sub, /// Multiplication operator (`*`). Mul, /// Division operator (`/`). Div, /// Modulo / remainder operator (`%`). Mod, /// Logical conjunction operator (`AND`). And, /// Logical disjunction operator (`OR`). Or, /// String pattern matching operator (`LIKE`). Like, /// Membership inclusion operator (`IN`). In, /// Range inclusion operator (`BETWEEN`). Between, } /// Represents a unary operator in an SQL expression. #[derive(Debug, Clone, PartialEq)] pub enum UnaryOpKind { /// Logical negation operator (`NOT`). Not, /// Unary positive operator (`+`). Plus, /// Unary negative operator (`-`). Minus, }