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