ClickHouse/dbms/include/DB/Parsers/ParserAlterQuery.h
Pavel Kartavyy a5c799d7a3 Merge
2013-08-07 13:07:42 +00:00

21 lines
443 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:
String getName() { return "ALTER query"; }
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, String & expected);
};
}