2019-12-01 22:01:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Parsers/IParserBase.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
/** Parses queries like
|
2020-02-17 02:59:56 +00:00
|
|
|
* DROP USER [IF EXISTS] name [,...]
|
|
|
|
* DROP ROLE [IF EXISTS] name [,...]
|
2019-12-01 22:01:05 +00:00
|
|
|
* DROP QUOTA [IF EXISTS] name [,...]
|
2020-03-18 14:11:44 +00:00
|
|
|
* DROP [SETTINGS] PROFILE [IF EXISTS] name [,...]
|
2020-02-04 22:37:04 +00:00
|
|
|
* DROP [ROW] POLICY [IF EXISTS] name [,...] ON [database.]table [,...]
|
2019-12-01 22:01:05 +00:00
|
|
|
*/
|
|
|
|
class ParserDropAccessEntityQuery : public IParserBase
|
|
|
|
{
|
|
|
|
protected:
|
2020-03-18 14:11:44 +00:00
|
|
|
const char * getName() const override { return "DROP access entity query"; }
|
2019-12-01 22:01:05 +00:00
|
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
|
|
|
};
|
|
|
|
}
|