ClickHouse/src/Parsers/ParserQuery.h

26 lines
526 B
C++
Raw Normal View History

2011-10-30 11:30:52 +00:00
#pragma once
#include <Parsers/IParserBase.h>
2011-10-30 11:30:52 +00:00
namespace DB
{
class ParserQuery : public IParserBase
{
private:
const char * end;
2019-05-16 19:00:46 +00:00
bool enable_explain; /// Allow queries prefixed with AST and ANALYZE for development purposes.
const char * getName() const override { return "Query"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
public:
2019-08-03 11:02:40 +00:00
ParserQuery(const char * end_, bool enable_explain_ = false)
: end(end_),
enable_explain(enable_explain_)
{}
2011-10-30 11:30:52 +00:00
};
}