ClickHouse/src/Functions/like.cpp

27 lines
419 B
C++
Raw Normal View History

#include "FunctionsStringSearch.h"
#include "FunctionFactory.h"
#include "MatchImpl.h"
namespace DB
{
2020-09-07 18:00:37 +00:00
namespace
{
struct NameLike
{
static constexpr auto name = "like";
};
2020-09-07 18:00:37 +00:00
using LikeImpl = MatchImpl</*SQL LIKE */ true, /*revert*/false>;
using FunctionLike = FunctionsStringSearch<LikeImpl, NameLike>;
2020-09-07 18:00:37 +00:00
}
void registerFunctionLike(FunctionFactory & factory)
{
factory.registerFunction<FunctionLike>();
}
2020-09-07 18:00:37 +00:00
}