2019-11-29 17:22:56 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Interpreters/IInterpreter.h>
|
|
|
|
#include <Parsers/IAST_fwd.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2021-04-10 23:33:54 +00:00
|
|
|
class InterpreterShowAccessEntitiesQuery : public IInterpreter, WithContext
|
2019-11-29 17:22:56 +00:00
|
|
|
{
|
|
|
|
public:
|
2021-04-10 23:33:54 +00:00
|
|
|
InterpreterShowAccessEntitiesQuery(const ASTPtr & query_ptr_, ContextPtr context_);
|
2020-05-08 12:50:45 +00:00
|
|
|
|
2019-11-29 17:22:56 +00:00
|
|
|
BlockIO execute() override;
|
|
|
|
|
2020-06-10 23:08:37 +00:00
|
|
|
bool ignoreQuota() const override { return true; }
|
|
|
|
bool ignoreLimits() const override { return true; }
|
2020-05-08 12:50:45 +00:00
|
|
|
|
2019-11-29 17:22:56 +00:00
|
|
|
private:
|
|
|
|
String getRewrittenQuery() const;
|
|
|
|
|
|
|
|
ASTPtr query_ptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|