ClickHouse/src/Interpreters/InterpreterShowAccessEntitiesQuery.h
2021-05-31 17:49:02 +03:00

27 lines
511 B
C++

#pragma once
#include <Interpreters/IInterpreter.h>
#include <Parsers/IAST_fwd.h>
namespace DB
{
class InterpreterShowAccessEntitiesQuery : public IInterpreter, WithMutableContext
{
public:
InterpreterShowAccessEntitiesQuery(const ASTPtr & query_ptr_, ContextMutablePtr context_);
BlockIO execute() override;
bool ignoreQuota() const override { return true; }
bool ignoreLimits() const override { return true; }
private:
String getRewrittenQuery() const;
ASTPtr query_ptr;
};
}