()
| 13 | use crate::meta_types::first_element_type; |
| 14 | |
| 15 | pub 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 | |
| 27 | pub fn window_function_signatures() -> HashMap<&'static str, Signature> { |
| 28 | let mut map: HashMap<&'static str, Signature> = HashMap::new(); |
no outgoing calls
no test coverage detected
searching dependent graphs…