1 | #include "arrayPush.h" |
---|---|
2 | #include <Functions/FunctionFactory.h> |
3 | |
4 | |
5 | namespace DB |
6 | { |
7 | |
8 | |
9 | class FunctionArrayPushFront : public FunctionArrayPush |
10 | { |
11 | public: |
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 | |
18 | void registerFunctionArrayPushFront(FunctionFactory & factory) |
19 | { |
20 | factory.registerFunction<FunctionArrayPushFront>(); |
21 | } |
22 | |
23 | } |
24 |