aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/URL/protocol.cpp
blob: 6bed71207f68b4720194a8da1bd81dec564b60db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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>;

REGISTER_FUNCTION(Protocol)
{
    factory.registerFunction<FunctionProtocol>();
}

}