ClickHouse/src/Interpreters/InterpreterDropAccessEntityQuery.h

25 lines
476 B
C++
Raw Normal View History

2019-12-01 22:01:05 +00:00
#pragma once
#include <Interpreters/IInterpreter.h>
#include <Parsers/IAST_fwd.h>
namespace DB
{
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:
AccessRightsElements getRequiredAccess() const;
2019-12-01 22:01:05 +00:00
ASTPtr query_ptr;
Context & context;
};
}