1#pragma once
2
3#include <Parsers/IParserBase.h>
4#include <Parsers/ExpressionElementParsers.h>
5
6
7namespace DB
8{
9
10/** Query like this:
11 * RENAME TABLE [db.]name TO [db.]name, [db.]name TO [db.]name, ...
12 * (An arbitrary number of tables can be renamed.)
13 */
14class ParserRenameQuery : public IParserBase
15{
16protected:
17 const char * getName() const { return "RENAME query"; }
18 bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected);
19};
20
21}
22