| 1 | namespace DB |
|---|---|
| 2 | { |
| 3 | |
| 4 | class FunctionFactory; |
| 5 | |
| 6 | void registerFunctionToYear(FunctionFactory &); |
| 7 | void registerFunctionToQuarter(FunctionFactory &); |
| 8 | void registerFunctionToMonth(FunctionFactory &); |
| 9 | void registerFunctionToDayOfMonth(FunctionFactory &); |
| 10 | void registerFunctionToDayOfWeek(FunctionFactory &); |
| 11 | void registerFunctionToDayOfYear(FunctionFactory &); |
| 12 | void registerFunctionToHour(FunctionFactory &); |
| 13 | void registerFunctionToMinute(FunctionFactory &); |
| 14 | void registerFunctionToSecond(FunctionFactory &); |
| 15 | void registerFunctionToStartOfDay(FunctionFactory &); |
| 16 | void registerFunctionToMonday(FunctionFactory &); |
| 17 | void registerFunctionToISOWeek(FunctionFactory &); |
| 18 | void registerFunctionToISOYear(FunctionFactory &); |
| 19 | void registerFunctionToCustomWeek(FunctionFactory &); |
| 20 | void registerFunctionToStartOfMonth(FunctionFactory &); |
| 21 | void registerFunctionToStartOfQuarter(FunctionFactory &); |
| 22 | void registerFunctionToStartOfYear(FunctionFactory &); |
| 23 | void registerFunctionToStartOfMinute(FunctionFactory &); |
| 24 | void registerFunctionToStartOfFiveMinute(FunctionFactory &); |
| 25 | void registerFunctionToStartOfTenMinutes(FunctionFactory &); |
| 26 | void registerFunctionToStartOfFifteenMinutes(FunctionFactory &); |
| 27 | void registerFunctionToStartOfHour(FunctionFactory &); |
| 28 | void registerFunctionToStartOfInterval(FunctionFactory &); |
| 29 | void registerFunctionToStartOfISOYear(FunctionFactory &); |
| 30 | void registerFunctionToRelativeYearNum(FunctionFactory &); |
| 31 | void registerFunctionToRelativeQuarterNum(FunctionFactory &); |
| 32 | void registerFunctionToRelativeMonthNum(FunctionFactory &); |
| 33 | void registerFunctionToRelativeWeekNum(FunctionFactory &); |
| 34 | void registerFunctionToRelativeDayNum(FunctionFactory &); |
| 35 | void registerFunctionToRelativeHourNum(FunctionFactory &); |
| 36 | void registerFunctionToRelativeMinuteNum(FunctionFactory &); |
| 37 | void registerFunctionToRelativeSecondNum(FunctionFactory &); |
| 38 | void registerFunctionToTime(FunctionFactory &); |
| 39 | void registerFunctionNow(FunctionFactory &); |
| 40 | void registerFunctionNow64(FunctionFactory &); |
| 41 | void registerFunctionToday(FunctionFactory &); |
| 42 | void registerFunctionYesterday(FunctionFactory &); |
| 43 | void registerFunctionTimeSlot(FunctionFactory &); |
| 44 | void registerFunctionTimeSlots(FunctionFactory &); |
| 45 | void registerFunctionToYYYYMM(FunctionFactory &); |
| 46 | void registerFunctionToYYYYMMDD(FunctionFactory &); |
| 47 | void registerFunctionToYYYYMMDDhhmmss(FunctionFactory &); |
| 48 | void registerFunctionAddSeconds(FunctionFactory &); |
| 49 | void registerFunctionAddMinutes(FunctionFactory &); |
| 50 | void registerFunctionAddHours(FunctionFactory &); |
| 51 | void registerFunctionAddDays(FunctionFactory &); |
| 52 | void registerFunctionAddWeeks(FunctionFactory &); |
| 53 | void registerFunctionAddMonths(FunctionFactory &); |
| 54 | void registerFunctionAddQuarters(FunctionFactory &); |
| 55 | void registerFunctionAddYears(FunctionFactory &); |
| 56 | void registerFunctionSubtractSeconds(FunctionFactory &); |
| 57 | void registerFunctionSubtractMinutes(FunctionFactory &); |
| 58 | void registerFunctionSubtractHours(FunctionFactory &); |
| 59 | void registerFunctionSubtractDays(FunctionFactory &); |
| 60 | void registerFunctionSubtractWeeks(FunctionFactory &); |
| 61 | void registerFunctionSubtractMonths(FunctionFactory &); |
| 62 | void registerFunctionSubtractQuarters(FunctionFactory &); |
| 63 | void registerFunctionSubtractYears(FunctionFactory &); |
| 64 | void registerFunctionDateDiff(FunctionFactory &); |
| 65 | void registerFunctionToTimeZone(FunctionFactory &); |
| 66 | void registerFunctionFormatDateTime(FunctionFactory &); |
| 67 | |
| 68 | void 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 |