ClickHouse/src/Parsers/ParserExplainQuery.h

25 lines
559 B
C++
Raw Normal View History

2020-06-22 13:26:55 +00:00
#pragma once
#include <Parsers/IParserBase.h>
namespace DB
{
class ParserExplainQuery : public IParserBase
{
protected:
2020-12-16 10:00:21 +00:00
const char * end;
bool allow_settings_after_format_in_insert;
2020-12-16 10:00:21 +00:00
2020-06-22 13:26:55 +00:00
const char * getName() const override { return "EXPLAIN"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
2020-12-16 10:00:21 +00:00
public:
explicit ParserExplainQuery(const char* end_, bool allow_settings_after_format_in_insert_)
: end(end_)
, allow_settings_after_format_in_insert(allow_settings_after_format_in_insert_)
{}
2020-06-22 13:26:55 +00:00
};
}