1namespace DB
2{
3
4class FunctionFactory;
5
6void registerFunctionToYear(FunctionFactory &);
7void registerFunctionToQuarter(FunctionFactory &);
8void registerFunctionToMonth(FunctionFactory &);
9void registerFunctionToDayOfMonth(FunctionFactory &);
10void registerFunctionToDayOfWeek(FunctionFactory &);
11void registerFunctionToDayOfYear(FunctionFactory &);
12void registerFunctionToHour(FunctionFactory &);
13void registerFunctionToMinute(FunctionFactory &);
14void registerFunctionToSecond(FunctionFactory &);
15void registerFunctionToStartOfDay(FunctionFactory &);
16void registerFunctionToMonday(FunctionFactory &);
17void registerFunctionToISOWeek(FunctionFactory &);
18void registerFunctionToISOYear(FunctionFactory &);
19void registerFunctionToCustomWeek(FunctionFactory &);
20void registerFunctionToStartOfMonth(FunctionFactory &);
21void registerFunctionToStartOfQuarter(FunctionFactory &);
22void registerFunctionToStartOfYear(FunctionFactory &);
23void registerFunctionToStartOfMinute(FunctionFactory &);
24void registerFunctionToStartOfFiveMinute(FunctionFactory &);
25void registerFunctionToStartOfTenMinutes(FunctionFactory &);
26void registerFunctionToStartOfFifteenMinutes(FunctionFactory &);
27void registerFunctionToStartOfHour(FunctionFactory &);
28void registerFunctionToStartOfInterval(FunctionFactory &);
29void registerFunctionToStartOfISOYear(FunctionFactory &);
30void registerFunctionToRelativeYearNum(FunctionFactory &);
31void registerFunctionToRelativeQuarterNum(FunctionFactory &);
32void registerFunctionToRelativeMonthNum(FunctionFactory &);
33void registerFunctionToRelativeWeekNum(FunctionFactory &);
34void registerFunctionToRelativeDayNum(FunctionFactory &);
35void registerFunctionToRelativeHourNum(FunctionFactory &);
36void registerFunctionToRelativeMinuteNum(FunctionFactory &);
37void registerFunctionToRelativeSecondNum(FunctionFactory &);
38void registerFunctionToTime(FunctionFactory &);
39void registerFunctionNow(FunctionFactory &);
40void registerFunctionNow64(FunctionFactory &);
41void registerFunctionToday(FunctionFactory &);
42void registerFunctionYesterday(FunctionFactory &);
43void registerFunctionTimeSlot(FunctionFactory &);
44void registerFunctionTimeSlots(FunctionFactory &);
45void registerFunctionToYYYYMM(FunctionFactory &);
46void registerFunctionToYYYYMMDD(FunctionFactory &);
47void registerFunctionToYYYYMMDDhhmmss(FunctionFactory &);
48void registerFunctionAddSeconds(FunctionFactory &);
49void registerFunctionAddMinutes(FunctionFactory &);
50void registerFunctionAddHours(FunctionFactory &);
51void registerFunctionAddDays(FunctionFactory &);
52void registerFunctionAddWeeks(FunctionFactory &);
53void registerFunctionAddMonths(FunctionFactory &);
54void registerFunctionAddQuarters(FunctionFactory &);
55void registerFunctionAddYears(FunctionFactory &);
56void registerFunctionSubtractSeconds(FunctionFactory &);
57void registerFunctionSubtractMinutes(FunctionFactory &);
58void registerFunctionSubtractHours(FunctionFactory &);
59void registerFunctionSubtractDays(FunctionFactory &);
60void registerFunctionSubtractWeeks(FunctionFactory &);
61void registerFunctionSubtractMonths(FunctionFactory &);
62void registerFunctionSubtractQuarters(FunctionFactory &);
63void registerFunctionSubtractYears(FunctionFactory &);
64void registerFunctionDateDiff(FunctionFactory &);
65void registerFunctionToTimeZone(FunctionFactory &);
66void registerFunctionFormatDateTime(FunctionFactory &);
67
68void registerFunctionsDateTime(FunctionFactory & factory)
69{
70 registerFunctionToYear(factory);
71 registerFunctionToQuarter(factory);
72 registerFunctionToMonth(factory);
73 registerFunctionToDayOfMonth(factory);
74 registerFunctionToDayOfWeek(factory);
75 registerFunctionToDayOfYear(factory);
76 registerFunctionToHour(factory);
77 registerFunctionToMinute(factory);
78 registerFunctionToSecond(factory);
79 registerFunctionToStartOfDay(factory);
80 registerFunctionToMonday(factory);
81 registerFunctionToISOWeek(factory);
82 registerFunctionToISOYear(factory);
83 registerFunctionToCustomWeek(factory);
84 registerFunctionToStartOfMonth(factory);
85 registerFunctionToStartOfQuarter(factory);
86 registerFunctionToStartOfYear(factory);
87 registerFunctionToStartOfMinute(factory);
88 registerFunctionToStartOfFiveMinute(factory);
89 registerFunctionToStartOfTenMinutes(factory);
90 registerFunctionToStartOfFifteenMinutes(factory);
91 registerFunctionToStartOfHour(factory);
92 registerFunctionToStartOfInterval(factory);
93 registerFunctionToStartOfISOYear(factory);
94 registerFunctionToRelativeYearNum(factory);
95 registerFunctionToRelativeQuarterNum(factory);
96 registerFunctionToRelativeMonthNum(factory);
97 registerFunctionToRelativeWeekNum(factory);
98 registerFunctionToRelativeDayNum(factory);
99 registerFunctionToRelativeHourNum(factory);
100 registerFunctionToRelativeMinuteNum(factory);
101 registerFunctionToRelativeSecondNum(factory);
102 registerFunctionToTime(factory);
103 registerFunctionNow(factory);
104 registerFunctionNow64(factory);
105 registerFunctionToday(factory);
106 registerFunctionYesterday(factory);
107 registerFunctionTimeSlot(factory);
108 registerFunctionTimeSlots(factory);
109 registerFunctionToYYYYMM(factory);
110 registerFunctionToYYYYMMDD(factory);
111 registerFunctionToYYYYMMDDhhmmss(factory);
112 registerFunctionAddSeconds(factory);
113 registerFunctionAddMinutes(factory);
114 registerFunctionAddHours(factory);
115 registerFunctionAddDays(factory);
116 registerFunctionAddWeeks(factory);
117 registerFunctionAddMonths(factory);
118 registerFunctionAddQuarters(factory);
119 registerFunctionAddYears(factory);
120 registerFunctionSubtractSeconds(factory);
121 registerFunctionSubtractMinutes(factory);
122 registerFunctionSubtractHours(factory);
123 registerFunctionSubtractDays(factory);
124 registerFunctionSubtractWeeks(factory);
125 registerFunctionSubtractMonths(factory);
126 registerFunctionSubtractQuarters(factory);
127 registerFunctionSubtractYears(factory);
128 registerFunctionDateDiff(factory);
129 registerFunctionToTimeZone(factory);
130 registerFunctionFormatDateTime(factory);
131}
132
133}
134