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

Function register_std_text_functions

crates/gitql-std/src/text/mod.rs:17–47  ·  view source on GitHub ↗
(map: &mut HashMap<&'static str, StandardFunction>)

Source from the content-addressed store, hash-verified

15
16#[inline(always)]
17pub fn register_std_text_functions(map: &mut HashMap<&'static str, StandardFunction>) {
18 map.insert("bin", text_bin);
19 map.insert("lower", text_lowercase);
20 map.insert("upper", text_uppercase);
21 map.insert("reverse", text_reverse);
22 map.insert("replicate", text_replicate);
23 map.insert("space", text_space);
24 map.insert("trim", text_trim);
25 map.insert("ltrim", text_left_trim);
26 map.insert("rtrim", text_right_trim);
27 map.insert("len", text_len);
28 map.insert("ascii", text_ascii);
29 map.insert("left", text_left);
30 map.insert("datalength", text_datalength);
31 map.insert("char", text_char);
32 map.insert("nchar", text_char);
33 map.insert("charindex", text_charindex);
34 map.insert("replace", text_replace);
35 map.insert("substring", text_substring);
36 map.insert("stuff", text_stuff);
37 map.insert("right", text_right);
38 map.insert("translate", text_translate);
39 map.insert("soundex", text_soundex);
40 map.insert("concat", text_concat);
41 map.insert("concat_ws", text_concat_ws);
42 map.insert("unicode", text_unicode);
43 map.insert("strcmp", text_strcmp);
44 map.insert("quotename", text_quotename);
45 map.insert("str", text_str);
46 map.insert("to_hex", text_to_hex);
47}
48
49#[inline(always)]
50pub fn register_std_text_function_signatures(map: &mut HashMap<&'static str, Signature>) {

Callers 1

standard_functionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…