#pragma once #include #include #include #include namespace DB { namespace ErrorCodes { extern const int NOT_IMPLEMENTED; } namespace MySQLParser { class ASTAlterQuery : public IAST { public: String database; String table; ASTPtr command_list; ASTPtr clone() const override; String getID(char delim) const override { return "AlterQuery" + (delim + database) + delim + table; } protected: void formatImpl(const FormatSettings & /*settings*/, FormatState & /*state*/, FormatStateStacked /*frame*/) const override { throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Method formatImpl is not supported by MySQLParser::ASTAlterQuery."); } }; class ParserAlterQuery : public IParserBase { protected: const char * getName() const override { return "alter query"; } bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override; }; } }