mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
29 lines
759 B
C++
29 lines
759 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionDateOrDateTimeAddInterval.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
using FunctionAddNanoseconds = FunctionDateOrDateTimeAddInterval<AddNanosecondsImpl>;
|
|
void registerFunctionAddNanoseconds(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionAddNanoseconds>();
|
|
};
|
|
|
|
using FunctionAddMicroseconds = FunctionDateOrDateTimeAddInterval<AddMicrosecondsImpl>;
|
|
void registerFunctionAddMicroseconds(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionAddMicroseconds>();
|
|
};
|
|
|
|
using FunctionAddMilliseconds = FunctionDateOrDateTimeAddInterval<AddMillisecondsImpl>;
|
|
void registerFunctionAddMilliseconds(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionAddMilliseconds>();
|
|
};
|
|
|
|
}
|
|
|
|
|