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;
|
2022-04-04 08:09:22 +00:00
|
|
|
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:
|
2022-04-04 08:09:22 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|