2019-12-01 22:01:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Interpreters/IInterpreter.h>
|
|
|
|
#include <Parsers/IAST_fwd.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-05-03 03:12:03 +00:00
|
|
|
class AccessRightsElements;
|
|
|
|
|
2019-12-01 22:01:05 +00:00
|
|
|
class InterpreterDropAccessEntityQuery : public IInterpreter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
InterpreterDropAccessEntityQuery(const ASTPtr & query_ptr_, Context & context_) : query_ptr(query_ptr_), context(context_) {}
|
|
|
|
|
|
|
|
BlockIO execute() override;
|
|
|
|
|
|
|
|
private:
|
2020-05-03 03:12:03 +00:00
|
|
|
AccessRightsElements getRequiredAccess() const;
|
|
|
|
|
2019-12-01 22:01:05 +00:00
|
|
|
ASTPtr query_ptr;
|
|
|
|
Context & context;
|
|
|
|
};
|
|
|
|
}
|