aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/URL/fragment.cpp
blob: 262c1a4c7a65655a1942307f37027d354f1a68de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <Functions/FunctionFactory.h>
#include <Functions/FunctionStringToString.h>
#include "fragment.h"

namespace DB
{

struct NameFragment { static constexpr auto name = "fragment"; };
using FunctionFragment = FunctionStringToString<ExtractSubstringImpl<ExtractFragment<true>>, NameFragment>;

REGISTER_FUNCTION(Fragment)
{
    factory.registerFunction<FunctionFragment>();
}

}