mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
4088c0a7f3
Automated register all functions with below naming convention by iterating through the symbols: void DB::registerXXX(DB::FunctionFactory &)
29 lines
729 B
C++
29 lines
729 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionDateOrDateTimeAddInterval.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
using FunctionSubtractNanoseconds = FunctionDateOrDateTimeAddInterval<SubtractNanosecondsImpl>;
|
|
REGISTER_FUNCTION(SubtractNanoseconds)
|
|
{
|
|
factory.registerFunction<FunctionSubtractNanoseconds>();
|
|
}
|
|
|
|
using FunctionSubtractMicroseconds = FunctionDateOrDateTimeAddInterval<SubtractMicrosecondsImpl>;
|
|
REGISTER_FUNCTION(SubtractMicroseconds)
|
|
{
|
|
factory.registerFunction<FunctionSubtractMicroseconds>();
|
|
}
|
|
|
|
using FunctionSubtractMilliseconds = FunctionDateOrDateTimeAddInterval<SubtractMillisecondsImpl>;
|
|
REGISTER_FUNCTION(SubtractMilliseconds)
|
|
{
|
|
factory.registerFunction<FunctionSubtractMilliseconds>();
|
|
}
|
|
|
|
}
|
|
|
|
|