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

Function register_std_datetime_functions

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

Source from the content-addressed store, hash-verified

31
32#[inline(always)]
33pub fn register_std_datetime_functions(map: &mut HashMap<&'static str, StandardFunction>) {
34 map.insert("date", date_extract_date);
35 map.insert("current_date", date_current_date);
36 map.insert("current_time", date_current_time);
37 map.insert("current_timestamp", date_current_timestamp);
38 map.insert("now", date_current_timestamp);
39 map.insert("makedate", date_make_date);
40 map.insert("maketime", date_make_time);
41 map.insert("day", date_day);
42 map.insert("dayname", date_dayname);
43 map.insert("monthname", date_monthname);
44 map.insert("hour", date_hour);
45 map.insert("minute", date_minute);
46 map.insert("isdate", date_is_date);
47 map.insert("dayofweek", date_day_of_week);
48 map.insert("dayofmonth", date_day_of_month);
49 map.insert("dayofyear", date_day_of_year);
50 map.insert("weekofyear", date_week_of_year);
51 map.insert("quarter", date_quarter);
52 map.insert("year", date_year);
53 map.insert("month", date_month);
54 map.insert("weekday", date_weekday);
55 map.insert("to_days", date_to_days);
56 map.insert("last_day", date_last_day);
57 map.insert("yearweek", date_year_and_week);
58
59 map.insert("justify_days", interval_justify_days);
60 map.insert("justify_hours", interval_justify_hours);
61}
62
63#[inline(always)]
64pub fn register_std_datetime_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…