ClickHouse/src/Parsers/ParserRenameQuery.h

22 lines
467 B
C++
Raw Normal View History

2012-06-18 06:19:13 +00:00
#pragma once
#include <Parsers/IParserBase.h>
#include <Parsers/ExpressionElementParsers.h>
2012-06-18 06:19:13 +00:00
namespace DB
{
2017-05-27 17:29:55 +00:00
/** Query like this:
2012-06-18 06:19:13 +00:00
* RENAME TABLE [db.]name TO [db.]name, [db.]name TO [db.]name, ...
2017-05-27 17:29:55 +00:00
* (An arbitrary number of tables can be renamed.)
2012-06-18 06:19:13 +00:00
*/
class ParserRenameQuery : public IParserBase
{
protected:
const char * getName() const override{ return "RENAME query"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
2012-06-18 06:19:13 +00:00
};
}