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

Function extract_qualified_column

nodedb-sql/src/planner/cte.rs:471–478  ·  view source on GitHub ↗
(expr: &ast::Expr)

Source from the content-addressed store, hash-verified

469}
470
471fn extract_qualified_column(expr: &ast::Expr) -> Option<(String, String)> {
472 match expr {
473 ast::Expr::CompoundIdentifier(parts) if parts.len() == 2 => {
474 Some((normalize_ident(&parts[0]), normalize_ident(&parts[1])))
475 }
476 _ => None,
477 }
478}
479
480fn extract_table_name(relation: &ast::TableFactor) -> Option<String> {
481 match relation {

Callers 1

extract_equi_linkFunction · 0.70

Calls 2

normalize_identFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected