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

27 lines
490 B
C++

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