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