mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
22 lines
398 B
C++
22 lines
398 B
C++
|
#include "FunctionStringReplace.h"
|
||
|
#include "FunctionFactory.h"
|
||
|
#include "ReplaceStringImpl.h"
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
struct NameReplaceOne
|
||
|
{
|
||
|
static constexpr auto name = "replaceOne";
|
||
|
};
|
||
|
|
||
|
using FunctionReplaceOne = FunctionStringReplace<ReplaceStringImpl<true>, NameReplaceOne>;
|
||
|
|
||
|
void registerFunctionReplaceOne(FunctionFactory & factory)
|
||
|
{
|
||
|
factory.registerFunction<FunctionReplaceOne>();
|
||
|
}
|
||
|
|
||
|
}
|