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 NameLike
|
|
|
|
{
|
|
|
|
static constexpr auto name = "like";
|
|
|
|
};
|
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
using LikeImpl = MatchImpl</*SQL LIKE */ true, /*revert*/false>;
|
2020-07-05 15:57:59 +00:00
|
|
|
using FunctionLike = FunctionsStringSearch<LikeImpl, NameLike>;
|
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 registerFunctionLike(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionLike>();
|
|
|
|
}
|
2020-09-07 18:00:37 +00:00
|
|
|
|
2020-05-06 23:21:13 +00:00
|
|
|
}
|