mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
21 lines
460 B
C++
21 lines
460 B
C++
#pragma once
|
|
|
|
#include <DB/Parsers/IParserBase.h>
|
|
#include <DB/Parsers/ExpressionElementParsers.h>
|
|
|
|
namespace DB
|
|
{
|
|
/** Запрос типа такого:
|
|
* ALTER TABLE [db.]name
|
|
* [ADD COLUMN col_type [AFTER col_after],]
|
|
* [DROP COLUMN col_drop, ...]
|
|
*/
|
|
class ParserAlterQuery : public IParserBase
|
|
{
|
|
protected:
|
|
const char * getName() const { return "ALTER query"; }
|
|
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, const char *& expected);
|
|
};
|
|
|
|
}
|