ClickHouse/src/Functions/replaceOne.cpp
2020-09-07 21:00:37 +03:00

26 lines
413 B
C++

#include "FunctionStringReplace.h"
#include "FunctionFactory.h"
#include "ReplaceStringImpl.h"
namespace DB
{
namespace
{
struct NameReplaceOne
{
static constexpr auto name = "replaceOne";
};
using FunctionReplaceOne = FunctionStringReplace<ReplaceStringImpl<true>, NameReplaceOne>;
}
void registerFunctionReplaceOne(FunctionFactory & factory)
{
factory.registerFunction<FunctionReplaceOne>();
}
}