1#include "domain.h"
2
3#include <Functions/FunctionFactory.h>
4#include <Functions/FunctionStringToString.h>
5
6namespace DB
7{
8
9struct NameDomain { static constexpr auto name = "domain"; };
10using FunctionDomain = FunctionStringToString<ExtractSubstringImpl<ExtractDomain<false>>, NameDomain>;
11
12
13void registerFunctionDomain(FunctionFactory & factory)
14{
15 factory.registerFunction<FunctionDomain>();
16}
17
18}
19