mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
b044d44fef
- introduced class MatchTraits with enums that replace bool template parameters - (minor: made negation the last template parameters because negation executes last during evaluation)
25 lines
458 B
C++
25 lines
458 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>>;
|
|
|
|
}
|
|
|
|
void registerFunctionNotLike(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionNotLike>();
|
|
}
|
|
|
|
}
|