Return `(table, column)` for a `table.col` compound identifier, or `None`.
(expr: &ast::Expr)
| 11 | |
| 12 | /// Return `(table, column)` for a `table.col` compound identifier, or `None`. |
| 13 | pub fn qualified_ident_pair(expr: &ast::Expr) -> Option<(String, String)> { |
| 14 | match expr { |
| 15 | ast::Expr::CompoundIdentifier(parts) if parts.len() == 2 => { |
| 16 | Some((normalize_ident(&parts[0]), normalize_ident(&parts[1]))) |
| 17 | } |
| 18 | _ => None, |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | /// Flatten a right-leaning AND expression tree into a list of conjuncts. |
| 23 | pub fn flatten_and_expr(expr: &ast::Expr, out: &mut Vec<ast::Expr>) { |
no test coverage detected