mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
29 lines
819 B
C++
29 lines
819 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionDateOrDateTimeAddInterval.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
using FunctionSubtractNanoseconds = FunctionDateOrDateTimeAddInterval<SubtractNanosecondsImpl>;
|
|
void registerFunctionSubtractNanoseconds(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionSubtractNanoseconds>();
|
|
};
|
|
|
|
using FunctionSubtractMicroseconds = FunctionDateOrDateTimeAddInterval<SubtractMicrosecondsImpl>;
|
|
void registerFunctionSubtractMicroseconds(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionSubtractMicroseconds>();
|
|
};
|
|
|
|
using FunctionSubtractMilliseconds = FunctionDateOrDateTimeAddInterval<SubtractMillisecondsImpl>;
|
|
void registerFunctionSubtractMilliseconds(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionSubtractMilliseconds>();
|
|
};
|
|
|
|
}
|
|
|
|
|