MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / standard_functions

Function standard_functions

crates/gitql-std/src/standard.rs:14–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12use std::sync::OnceLock;
13
14pub fn standard_functions() -> &'static HashMap<&'static str, StandardFunction> {
15 static HASHMAP: OnceLock<HashMap<&'static str, StandardFunction>> = OnceLock::new();
16 HASHMAP.get_or_init(|| {
17 let mut map: HashMap<&'static str, StandardFunction> = HashMap::new();
18 register_std_text_functions(&mut map);
19 register_std_datetime_functions(&mut map);
20 register_std_number_functions(&mut map);
21 register_std_general_functions(&mut map);
22 register_std_regex_functions(&mut map);
23 register_std_array_functions(&mut map);
24 register_std_range_functions(&mut map);
25 map
26 })
27}
28
29pub fn standard_function_signatures() -> HashMap<&'static str, Signature> {
30 let mut map: HashMap<&'static str, Signature> = HashMap::new();

Callers 1

gitql_std_functionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…