blob: 37cbcd4d88cf09d13bbfffe144e89100f353011f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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;
};
}
|