ClickHouse/src/Functions/URL/protocol.cpp
2020-04-03 18:14:31 +03:00

18 lines
408 B
C++

#include <Functions/FunctionFactory.h>
#include <Functions/FunctionStringToString.h>
#include "protocol.h"
namespace DB
{
struct NameProtocol { static constexpr auto name = "protocol"; };
using FunctionProtocol = FunctionStringToString<ExtractSubstringImpl<ExtractProtocol>, NameProtocol>;
void registerFunctionProtocol(FunctionFactory & factory)
{
factory.registerFunction<FunctionProtocol>();
}
}