mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
dd8b29b4fb
This change simplifies handling of access entities in access storages.
25 lines
476 B
C++
25 lines
476 B
C++
#pragma once
|
|
|
|
#include <Interpreters/IInterpreter.h>
|
|
#include <Parsers/IAST_fwd.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
class AccessRightsElements;
|
|
|
|
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;
|
|
|
|
ASTPtr query_ptr;
|
|
Context & context;
|
|
};
|
|
}
|