ClickHouse/src/Functions/visitParamExtractInt.cpp

22 lines
795 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
#include <Functions/FunctionsVisitParam.h>
#include <Functions/FunctionsStringSearch.h>
namespace DB
{
struct NameVisitParamExtractInt { static constexpr auto name = "visitParamExtractInt"; };
using FunctionVisitParamExtractInt = FunctionsStringSearch<ExtractParamImpl<ExtractNumericType<Int64>>, NameVisitParamExtractInt>;
2021-04-01 20:07:01 +00:00
struct NameSimpleJSONExtractInt { static constexpr auto name = "simpleJSONExtractInt"; };
2021-03-30 16:25:56 +00:00
using FunctionSimpleJSONExtractInt = FunctionsStringSearch<ExtractParamImpl<ExtractNumericType<Int64>>, NameSimpleJSONExtractInt>;
void registerFunctionVisitParamExtractInt(FunctionFactory & factory)
{
factory.registerFunction<FunctionVisitParamExtractInt>();
2021-03-30 16:25:56 +00:00
factory.registerFunction<FunctionSimpleJSONExtractInt>();
}
}