ClickHouse/dbms/src/Functions/cutQueryStringAndFragment.cpp

17 lines
550 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
#include <Functions/queryStringAndFragment.h>
#include <Functions/FunctionStringToString.h>
namespace DB
{
struct NameCutQueryStringAndFragment { static constexpr auto name = "cutQueryStringAndFragment"; };
using FunctionCutQueryStringAndFragment = FunctionStringToString<CutSubstringImpl<ExtractQueryStringAndFragment<false>>, NameCutQueryStringAndFragment>;
void registerFunctionCutQueryStringAndFragment(FunctionFactory & factory)
{
factory.registerFunction<FunctionCutQueryStringAndFragment>();
}
}