ClickHouse/src/Interpreters/InterpreterShowAccessEntitiesQuery.h

30 lines
568 B
C++
Raw Normal View History

2019-11-29 17:22:56 +00:00
#pragma once
#include <Interpreters/IInterpreter.h>
#include <Parsers/IAST_fwd.h>
namespace DB
{
class Context;
class InterpreterShowAccessEntitiesQuery : public IInterpreter
2019-11-29 17:22:56 +00:00
{
public:
InterpreterShowAccessEntitiesQuery(const ASTPtr & query_ptr_, Context & context_);
2019-11-29 17:22:56 +00:00
BlockIO execute() override;
bool ignoreQuota() const override { return ignore_quota; }
bool ignoreLimits() const override { return ignore_quota; }
2019-11-29 17:22:56 +00:00
private:
String getRewrittenQuery() const;
ASTPtr query_ptr;
Context & context;
bool ignore_quota = false;
2019-11-29 17:22:56 +00:00
};
}