(&self, expr: &Expr)
| 94 | |
| 95 | impl Unparser<'_> { |
| 96 | pub fn expr_to_sql(&self, expr: &Expr) -> Result<ast::Expr> { |
| 97 | let mut root_expr = self.expr_to_sql_inner(expr)?; |
| 98 | if self.pretty { |
| 99 | root_expr = self.remove_unnecessary_nesting(root_expr, LOWEST, LOWEST); |
| 100 | } |
| 101 | Ok(root_expr) |
| 102 | } |
| 103 | |
| 104 | #[cfg_attr(feature = "recursive_protection", recursive::recursive)] |
| 105 | fn expr_to_sql_inner(&self, expr: &Expr) -> Result<ast::Expr> { |