1#include <Functions/FunctionFactory.h>
2#include <Functions/FunctionStringToString.h>
3#include "protocol.h"
4
5
6namespace DB
7{
8
9struct NameProtocol { static constexpr auto name = "protocol"; };
10using FunctionProtocol = FunctionStringToString<ExtractSubstringImpl<ExtractProtocol>, NameProtocol>;
11
12void registerFunctionProtocol(FunctionFactory & factory)
13{
14 factory.registerFunction<FunctionProtocol>();
15}
16
17}
18