Parse a scalar binary operator
(op: BinaryOperator)
| 316 | |
| 317 | /// Parse a scalar binary operator |
| 318 | pub(crate) fn parse_binop(op: BinaryOperator) -> SqlParseResult<BinOp> { |
| 319 | match op { |
| 320 | BinaryOperator::Eq => Ok(BinOp::Eq), |
| 321 | BinaryOperator::NotEq => Ok(BinOp::Ne), |
| 322 | BinaryOperator::Lt => Ok(BinOp::Lt), |
| 323 | BinaryOperator::LtEq => Ok(BinOp::Lte), |
| 324 | BinaryOperator::Gt => Ok(BinOp::Gt), |
| 325 | BinaryOperator::GtEq => Ok(BinOp::Gte), |
| 326 | _ => Err(SqlUnsupported::BinOp(op).into()), |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | /// Parse a literal expression |
| 331 | pub(crate) fn parse_literal(value: Value) -> SqlParseResult<SqlLiteral> { |
no test coverage detected
searching dependent graphs…