mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
22 lines
559 B
C++
22 lines
559 B
C++
|
#pragma once
|
|||
|
|
|||
|
#include <DB/Parsers/IParserBase.h>
|
|||
|
#include <DB/Parsers/ExpressionElementParsers.h>
|
|||
|
|
|||
|
|
|||
|
namespace DB
|
|||
|
{
|
|||
|
|
|||
|
/** Запрос типа такого:
|
|||
|
* RENAME TABLE [db.]name TO [db.]name, [db.]name TO [db.]name, ...
|
|||
|
* (Переименовываться может произвольное количество таблиц.)
|
|||
|
*/
|
|||
|
class ParserRenameQuery : public IParserBase
|
|||
|
{
|
|||
|
protected:
|
|||
|
const char * getName() const { return "RENAME query"; }
|
|||
|
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected);
|
|||
|
};
|
|||
|
|
|||
|
}
|