2019-08-04 14:15:47 +00:00
|
|
|
#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<ExtractNumericType<UInt64>>, NameVisitParamExtractUInt>;
|
|
|
|
|
2021-03-08 09:15:44 +00:00
|
|
|
struct NameJSONSExtractUInt { static constexpr auto name = "JSONSExtractUInt"; };
|
|
|
|
using FunctionJSONSExtractUInt = FunctionsStringSearch<ExtractParamImpl<ExtractNumericType<UInt64>>, NameJSONSExtractUInt>;
|
|
|
|
|
2019-08-04 14:15:47 +00:00
|
|
|
|
|
|
|
void registerFunctionVisitParamExtractUInt(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionVisitParamExtractUInt>();
|
2021-03-08 09:15:44 +00:00
|
|
|
factory.registerFunction<FunctionJSONSExtractUInt>();
|
2019-08-04 14:15:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|