1#include "arrayPush.h"
2#include <Functions/FunctionFactory.h>
3
4
5namespace DB
6{
7
8
9class FunctionArrayPushFront : public FunctionArrayPush
10{
11public:
12 static constexpr auto name = "arrayPushFront";
13 static FunctionPtr create(const Context & context) { return std::make_shared<FunctionArrayPushFront>(context); }
14 FunctionArrayPushFront(const Context & context_) : FunctionArrayPush(context_, true, name) {}
15};
16
17
18void registerFunctionArrayPushFront(FunctionFactory & factory)
19{
20 factory.registerFunction<FunctionArrayPushFront>();
21}
22
23}
24