mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
22 lines
473 B
C++
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;
|
|
};
|
|
|
|
}
|