mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
4088c0a7f3
Automated register all functions with below naming convention by iterating through the symbols: void DB::registerXXX(DB::FunctionFactory &)
25 lines
429 B
C++
25 lines
429 B
C++
#include "FunctionsStringSearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "MatchImpl.h"
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameNotLike
|
|
{
|
|
static constexpr auto name = "notLike";
|
|
};
|
|
|
|
using FunctionNotLike = FunctionsStringSearch<MatchImpl<NameNotLike, MatchTraits::Syntax::Like, MatchTraits::Case::Sensitive, MatchTraits::Result::Negate>>;
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(NotLike)
|
|
{
|
|
factory.registerFunction<FunctionNotLike>();
|
|
}
|
|
|
|
}
|