2020-05-06 23:21:13 +00:00
|
|
|
#include "FunctionsStringSearch.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "MatchImpl.h"
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-05-06 23:21:13 +00:00
|
|
|
|
|
|
|
struct NameNotLike
|
|
|
|
{
|
|
|
|
static constexpr auto name = "notLike";
|
|
|
|
};
|
|
|
|
|
2022-05-24 12:03:14 +00:00
|
|
|
using FunctionNotLike = FunctionsStringSearch<MatchImpl<NameNotLike, MatchTraits::Syntax::Like, MatchTraits::Case::Sensitive, MatchTraits::Result::Negate>>;
|
2020-05-06 23:21:13 +00:00
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2020-05-06 23:21:13 +00:00
|
|
|
void registerFunctionNotLike(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionNotLike>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|