ClickHouse/src/Functions/visitParamExtractUInt.cpp

23 lines
778 B
C++
Raw Normal View History

#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>>>;
2021-04-01 20:07:01 +00:00
struct NameSimpleJSONExtractUInt { static constexpr auto name = "simpleJSONExtractUInt"; };
using FunctionSimpleJSONExtractUInt = FunctionsStringSearch<ExtractParamImpl<NameSimpleJSONExtractUInt, ExtractNumericType<UInt64>>>;
REGISTER_FUNCTION(VisitParamExtractUInt)
{
factory.registerFunction<FunctionVisitParamExtractUInt>();
2021-03-30 16:25:56 +00:00
factory.registerFunction<FunctionSimpleJSONExtractUInt>();
}
}