mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
4088c0a7f3
Automated register all functions with below naming convention by iterating through the symbols: void DB::registerXXX(DB::FunctionFactory &)
14 lines
349 B
C++
14 lines
349 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/LeftRight.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
REGISTER_FUNCTION(Left)
|
|
{
|
|
factory.registerFunction<FunctionLeftRight<false, SubstringDirection::Left>>(FunctionFactory::CaseInsensitive);
|
|
factory.registerFunction<FunctionLeftRight<true, SubstringDirection::Left>>(FunctionFactory::CaseSensitive);
|
|
}
|
|
|
|
}
|