1#pragma once
2
3#include <Parsers/IParserBase.h>
4
5
6namespace DB
7{
8
9class ParserQuery : public IParserBase
10{
11private:
12 const char * end;
13 bool enable_explain; /// Allow queries prefixed with AST and ANALYZE for development purposes.
14
15 const char * getName() const override { return "Query"; }
16 bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
17
18public:
19 ParserQuery(const char * end_, bool enable_explain_ = false)
20 : end(end_),
21 enable_explain(enable_explain_)
22 {}
23};
24
25}
26