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

Method lookup

nodedb-sql/src/functions/registry.rs:116–119  ·  view source on GitHub ↗

Look up a function by name (case-insensitive).

(&self, name: &str)

Source from the content-addressed store, hash-verified

114
115 /// Look up a function by name (case-insensitive).
116 pub fn lookup(&self, name: &str) -> Option<&FunctionMeta> {
117 let lower = name.to_lowercase();
118 self.functions.iter().find(|f| f.name == lower)
119 }
120
121 /// Check if a function triggers special search routing.
122 pub fn search_trigger(&self, name: &str) -> SearchTrigger {

Callers 5

fold_function_callFunction · 0.45
convert_window_specFunction · 0.45
search_triggerMethod · 0.45
is_aggregateMethod · 0.45
is_windowMethod · 0.45

Calls 2

findMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected