mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
27 lines
464 B
C++
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);
|
|
}
|
|
|
|
}
|