1 | #pragma once |
---|---|
2 | |
3 | #include <Parsers/IParserBase.h> |
4 | #include <Parsers/ExpressionElementParsers.h> |
5 | |
6 | |
7 | namespace DB |
8 | { |
9 | |
10 | /** Query like this: |
11 | * SET name1 = value1, name2 = value2, ... |
12 | */ |
13 | class ParserSetQuery : public IParserBase |
14 | { |
15 | public: |
16 | explicit ParserSetQuery(bool parse_only_internals_ = false) : parse_only_internals(parse_only_internals_) {} |
17 | |
18 | protected: |
19 | const char * getName() const override { return "SET query"; } |
20 | bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override; |
21 | |
22 | /// Parse the list `name = value` pairs, without SET. |
23 | bool parse_only_internals; |
24 | }; |
25 | |
26 | } |
27 |