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