mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
23 lines
945 B
C++
23 lines
945 B
C++
#include <DB/Functions/FunctionFactory.h>
|
|
#include <DB/Functions/FunctionsVisitParam.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
void registerFunctionsVisitParam(FunctionFactory & factory)
|
|
{
|
|
#define F [](const Context & context) -> IFunction*
|
|
|
|
factory.registerFunction("visitParamHas", F { return new FunctionVisitParamHas; });
|
|
factory.registerFunction("visitParamExtractUInt", F { return new FunctionVisitParamExtractUInt; });
|
|
factory.registerFunction("visitParamExtractInt", F { return new FunctionVisitParamExtractInt; });
|
|
factory.registerFunction("visitParamExtractFloat", F { return new FunctionVisitParamExtractFloat; });
|
|
factory.registerFunction("visitParamExtractBool", F { return new FunctionVisitParamExtractBool; });
|
|
factory.registerFunction("visitParamExtractRaw", F { return new FunctionVisitParamExtractRaw; });
|
|
factory.registerFunction("visitParamExtractString", F { return new FunctionVisitParamExtractString; });
|
|
|
|
#undef F
|
|
}
|
|
|
|
}
|