2011-11-05 23:31:19 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#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:
|
2017-04-01 07:20:54 +00:00
|
|
|
const char * getName() const { return "DROP query"; }
|
2017-07-10 03:28:12 +00:00
|
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected);
|
2011-11-05 23:31:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|