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

Function normalize_ident

nodedb-sql/src/parser/normalize.rs:13–19  ·  view source on GitHub ↗

Normalize a SQL identifier: lowercase unquoted, preserve quoted.

(ident: &sqlparser::ast::Ident)

Source from the content-addressed store, hash-verified

11
12/// Normalize a SQL identifier: lowercase unquoted, preserve quoted.
13pub fn normalize_ident(ident: &sqlparser::ast::Ident) -> String {
14 if ident.quote_style.is_some() {
15 ident.value.clone()
16 } else {
17 ident.value.to_lowercase()
18 }
19}
20
21/// Normalize a compound object name, rejecting schema-qualified forms.
22///

Callers 15

function_nameFunction · 0.85
plan_recursive_cteFunction · 0.85
extract_qualified_columnFunction · 0.85
extract_table_aliasFunction · 0.85
resolve_grouping_colFunction · 0.85
qualified_ident_pairFunction · 0.85
strip_table_qualifierFunction · 0.85
try_extract_time_bucketFunction · 0.85
resolve_group_by_exprFunction · 0.85
extract_grouping_callsFunction · 0.85
normalize_function_nameFunction · 0.85

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected