MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / normalize_function_name

Function normalize_function_name

nodedb-sql/src/planner/aggregate.rs:343–352  ·  view source on GitHub ↗

Return the simple lowercase name of a function (unqualified part only).

(f: &ast::Function)

Source from the content-addressed store, hash-verified

341
342/// Return the simple lowercase name of a function (unqualified part only).
343fn 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.
355pub fn extract_aggregates_from_projection(

Callers 1

Calls 2

normalize_identFunction · 0.85
lastMethod · 0.45

Tested by

no test coverage detected