mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
31 lines
919 B
C++
31 lines
919 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/DateTimeTransforms.h>
|
|
#include <Functions/FunctionDateOrDateTimeToSomething.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
using FunctionToStartOfMillisecond = FunctionDateOrDateTimeToSomething<DataTypeDateTime64, ToStartOfMillisecondImpl>;
|
|
|
|
void registerFunctionToStartOfMillisecond(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionToStartOfMillisecond>();
|
|
}
|
|
|
|
using FunctionToStartOfMicrosecond = FunctionDateOrDateTimeToSomething<DataTypeDateTime64, ToStartOfMicrosecondImpl>;
|
|
|
|
void registerFunctionToStartOfMicrosecond(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionToStartOfMicrosecond>();
|
|
}
|
|
|
|
using FunctionToStartOfNanosecond = FunctionDateOrDateTimeToSomething<DataTypeDateTime64, ToStartOfNanosecondImpl>;
|
|
|
|
void registerFunctionToStartOfNanosecond(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionToStartOfNanosecond>();
|
|
}
|
|
|
|
}
|