1 | #include <Functions/FunctionFactory.h> |
---|---|
2 | #include <Functions/FunctionStringToString.h> |
3 | #include "fragment.h" |
4 | |
5 | namespace DB |
6 | { |
7 | |
8 | struct NameFragment { static constexpr auto name = "fragment"; }; |
9 | using FunctionFragment = FunctionStringToString<ExtractSubstringImpl<ExtractFragment<true>>, NameFragment>; |
10 | |
11 | void registerFunctionFragment(FunctionFactory & factory) |
12 | { |
13 | factory.registerFunction<FunctionFragment>(); |
14 | } |
15 | |
16 | } |
17 |