mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
26 lines
413 B
C++
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>();
|
|
}
|
|
|
|
}
|