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


namespace DB
{

struct NamePath { static constexpr auto name = "path"; };
using FunctionPath = FunctionStringToString<ExtractSubstringImpl<ExtractPath<false>>, NamePath>;

REGISTER_FUNCTION(Path)
{
    factory.registerFunction<FunctionPath>();
}

}