ClickHouse/dbms/src/Parsers/ParserDropQuery.h

24 lines
413 B
C++
Raw Normal View History

2011-11-05 23:31:19 +00:00
#pragma once
#include <Parsers/IParserBase.h>
#include <Parsers/ExpressionElementParsers.h>
2011-11-05 23:31:19 +00:00
namespace DB
{
2017-05-27 17:29:55 +00:00
/** Query like this:
2011-11-05 23:31:19 +00:00
* DROP|DETACH TABLE [IF EXISTS] [db.]name
*
2017-05-27 17:29:55 +00:00
* Or:
2011-11-05 23:31:19 +00:00
* DROP DATABASE [IF EXISTS] db
*/
class ParserDropQuery : public IParserBase
{
protected:
const char * getName() const { return "DROP query"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected);
2011-11-05 23:31:19 +00:00
};
}