ClickHouse/src/Parsers/ParserExternalDDLQuery.h
2020-08-04 10:31:26 +08:00

22 lines
473 B
C++

#pragma once
#include <Parsers/IParserBase.h>
namespace DB
{
/** Query like this:
* EXTERNAL DDL FROM external_source(...) DROP|CREATE|RENAME ...
* Example:
* EXTERNAL DDL FROM MySQL(clickhouse_db, mysql_db) DROP TABLE mysql_db.name;
*/
class ParserExternalDDLQuery : public IParserBase
{
protected:
const char * getName() const override { return "EXTERNAL DDL query"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
};
}