UnaryOperator in sqlparser::ast - Rust

Enum UnaryOperator 

Source

pub enum UnaryOperator {
Show 15 variants AtDashAt, BangNot, BitwiseNot, DoubleAt, Hash, Plus, Minus, Not, PGAbs, PGCubeRoot, PGPostfixFactorial, PGPrefixFactorial, PGSquareRoot, QuestionDash, QuestionPipe,
}
Expand description

Unary operators

§
§

Unary logical not operator: e.g. ! false (Hive-specific)

§

Bitwise Not, e.g. ~9

§
§
§

Plus, e.g. +9

§

Minus, e.g. -9

§

Not, e.g. NOT(true)

§

Absolute value, e.g. @ -9 (PostgreSQL-specific)

§

Cube root, e.g. ||/27 (PostgreSQL-specific)

§

Factorial, e.g. 9! (PostgreSQL-specific)

§

Factorial, e.g. !!9 (PostgreSQL-specific)

§

Square root, e.g. |/9 (PostgreSQL-specific)

§
§

§
§
§
§
§
§