mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +00:00
27 lines
419 B
C++
27 lines
419 B
C++
#include "FunctionsStringSearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "MatchImpl.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameLike
|
|
{
|
|
static constexpr auto name = "like";
|
|
};
|
|
|
|
using LikeImpl = MatchImpl</*SQL LIKE */ true, /*revert*/false>;
|
|
using FunctionLike = FunctionsStringSearch<LikeImpl, NameLike>;
|
|
|
|
}
|
|
|
|
void registerFunctionLike(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionLike>();
|
|
}
|
|
|
|
}
|