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

Function qualified_name

nodedb-sql/src/planner/select/helpers.rs:61–63  ·  view source on GitHub ↗

Build a qualified column reference (`table.name` or just `name`).

(table: Option<&str>, name: &str)

Source from the content-addressed store, hash-verified

59
60/// Build a qualified column reference (`table.name` or just `name`).
61pub fn qualified_name(table: Option<&str>, name: &str) -> String {
62 table.map_or_else(|| name.to_string(), |table| format!("{table}.{name}"))
63}
64
65/// Convert a WHERE expression into a list of Filter.
66pub fn convert_where_to_filters(expr: &ast::Expr) -> Result<Vec<Filter>> {

Callers 3

convert_projectionFunction · 0.85
sql_expr_to_scan_filtersFunction · 0.85
convert_expr_innerFunction · 0.85

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected