ClickHouse/src/Functions/match.cpp
2022-02-06 09:38:05 +08:00

27 lines
464 B
C++

#include "FunctionsStringSearch.h"
#include "FunctionFactory.h"
#include "MatchImpl.h"
namespace DB
{
namespace
{
struct NameMatch
{
static constexpr auto name = "match";
};
using FunctionMatch = FunctionsStringSearch<MatchImpl<NameMatch, false>>;
}
void registerFunctionMatch(FunctionFactory & factory)
{
factory.registerFunction<FunctionMatch>();
factory.registerAlias("REGEXP_MATCHES", NameMatch::name, FunctionFactory::CaseInsensitive);
}
}