mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
43 lines
1.8 KiB
C++
43 lines
1.8 KiB
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionsDateTime.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
void registerFunctionsDateTime(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionToYear>();
|
|
factory.registerFunction<FunctionToMonth>();
|
|
factory.registerFunction<FunctionToDayOfMonth>();
|
|
factory.registerFunction<FunctionToDayOfWeek>();
|
|
factory.registerFunction<FunctionToHour>();
|
|
factory.registerFunction<FunctionToMinute>();
|
|
factory.registerFunction<FunctionToSecond>();
|
|
factory.registerFunction<FunctionToStartOfDay>();
|
|
factory.registerFunction<FunctionToMonday>();
|
|
factory.registerFunction<FunctionToStartOfMonth>();
|
|
factory.registerFunction<FunctionToStartOfQuarter>();
|
|
factory.registerFunction<FunctionToStartOfYear>();
|
|
factory.registerFunction<FunctionToStartOfMinute>();
|
|
factory.registerFunction<FunctionToStartOfFiveMinute>();
|
|
factory.registerFunction<FunctionToStartOfHour>();
|
|
factory.registerFunction<FunctionToRelativeYearNum>();
|
|
factory.registerFunction<FunctionToRelativeMonthNum>();
|
|
factory.registerFunction<FunctionToRelativeWeekNum>();
|
|
factory.registerFunction<FunctionToRelativeDayNum>();
|
|
factory.registerFunction<FunctionToRelativeHourNum>();
|
|
factory.registerFunction<FunctionToRelativeMinuteNum>();
|
|
factory.registerFunction<FunctionToRelativeSecondNum>();
|
|
factory.registerFunction<FunctionToTime>();
|
|
factory.registerFunction<FunctionNow>();
|
|
factory.registerFunction<FunctionToday>();
|
|
factory.registerFunction<FunctionYesterday>();
|
|
factory.registerFunction<FunctionTimeSlot>();
|
|
factory.registerFunction<FunctionTimeSlots>();
|
|
factory.registerFunction<FunctionToYYYYMM>();
|
|
factory.registerFunction<FunctionToYYYYMMDD>();
|
|
factory.registerFunction<FunctionToYYYYMMDDhhmmss>();
|
|
}
|
|
|
|
}
|