Return the simple lowercase name of a function (unqualified part only).
(f: &ast::Function)
| 341 | |
| 342 | /// Return the simple lowercase name of a function (unqualified part only). |
| 343 | fn normalize_function_name(f: &ast::Function) -> String { |
| 344 | f.name |
| 345 | .0 |
| 346 | .last() |
| 347 | .map(|p| match p { |
| 348 | ast::ObjectNamePart::Identifier(ident) => normalize_ident(ident), |
| 349 | _ => String::new(), |
| 350 | }) |
| 351 | .unwrap_or_default() |
| 352 | } |
| 353 | |
| 354 | /// Extract aggregate expressions from SELECT projection. |
| 355 | pub fn extract_aggregates_from_projection( |
no test coverage detected