ClickHouse/src/Functions/visitParamExtractUInt.cpp

23 lines
807 B
C++

#include <Functions/FunctionFactory.h>
#include <Functions/FunctionsVisitParam.h>
#include <Functions/FunctionsStringSearch.h>
namespace DB
{
struct NameVisitParamExtractUInt { static constexpr auto name = "visitParamExtractUInt"; };
using FunctionVisitParamExtractUInt = FunctionsStringSearch<ExtractParamImpl<NameVisitParamExtractUInt, ExtractNumericType<UInt64>>>;
struct NameSimpleJSONExtractUInt { static constexpr auto name = "simpleJSONExtractUInt"; };
using FunctionSimpleJSONExtractUInt = FunctionsStringSearch<ExtractParamImpl<NameSimpleJSONExtractUInt, ExtractNumericType<UInt64>>>;
void registerFunctionVisitParamExtractUInt(FunctionFactory & factory)
{
factory.registerFunction<FunctionVisitParamExtractUInt>();
factory.registerFunction<FunctionSimpleJSONExtractUInt>();
}
}