ClickHouse/src/Functions/like.h
Robert Schulze b044d44fef
Refactoring: Make template instantiation easier to read
- introduced class MatchTraits with enums that replace bool template
  parameters

- (minor: made negation the last template parameters because negation
  executes last during evaluation)
2022-05-25 10:03:58 +02:00

18 lines
337 B
C++

#pragma once
#include "MatchImpl.h"
#include "FunctionsStringSearch.h"
namespace DB
{
struct NameLike
{
static constexpr auto name = "like";
};
using LikeImpl = MatchImpl<NameLike, MatchTraits::Syntax::Like, MatchTraits::Case::Sensitive, MatchTraits::Result::DontNegate>;
using FunctionLike = FunctionsStringSearch<LikeImpl>;
}