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