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

Function window_functions

crates/gitql-std/src/window.rs:15–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13use crate::meta_types::first_element_type;
14
15pub fn window_functions() -> &'static HashMap<&'static str, WindowFunction> {
16 static HASHMAP: OnceLock<HashMap<&'static str, WindowFunction>> = OnceLock::new();
17 HASHMAP.get_or_init(|| {
18 let mut map: HashMap<&'static str, WindowFunction> = HashMap::new();
19 map.insert("first_value", window_first_value);
20 map.insert("nth_value", window_nth_value);
21 map.insert("last_value", window_last_value);
22 map.insert("row_number", window_row_number);
23 map
24 })
25}
26
27pub fn window_function_signatures() -> HashMap<&'static str, Signature> {
28 let mut map: HashMap<&'static str, Signature> = HashMap::new();

Callers 1

create_gitql_environmentFunction · 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…