ClickHouse/src/Parsers/ParserExternalDDLQuery.h

22 lines
473 B
C++
Raw Normal View History

2020-07-01 06:42:22 +00:00
#pragma once
2020-07-06 13:57:45 +00:00
#include <Parsers/IParserBase.h>
2020-07-01 06:42:22 +00:00
namespace DB
{
2020-07-06 13:57:45 +00:00
/** 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;
};
2020-07-01 06:42:22 +00:00
}