mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
20 lines
561 B
C++
20 lines
561 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionsVisitParam.h>
|
|
#include <Functions/FunctionsStringSearch.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct NameSimpleJSONExtractUInt { static constexpr auto name = "simpleJSONExtractUInt"; };
|
|
using FunctionSimpleJSONExtractUInt = FunctionsStringSearch<ExtractParamImpl<NameSimpleJSONExtractUInt, ExtractNumericType<UInt64>>>;
|
|
|
|
|
|
REGISTER_FUNCTION(VisitParamExtractUInt)
|
|
{
|
|
factory.registerFunction<FunctionSimpleJSONExtractUInt>();
|
|
factory.registerAlias("visitParamExtractUInt", "simpleJSONExtractUInt");
|
|
}
|
|
|
|
}
|