mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
18 lines
408 B
C++
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>();
|
|
}
|
|
|
|
}
|