1#pragma once
2
3#include <Interpreters/IInterpreter.h>
4#include <Parsers/IAST_fwd.h>
5
6
7namespace DB
8{
9class Context;
10
11class InterpreterShowQuotasQuery : public IInterpreter
12{
13public:
14 InterpreterShowQuotasQuery(const ASTPtr & query_ptr_, Context & context_);
15
16 BlockIO execute() override;
17
18 bool ignoreQuota() const override { return true; }
19 bool ignoreLimits() const override { return true; }
20
21private:
22 ASTPtr query_ptr;
23 Context & context;
24
25 String getRewrittenQuery();
26};
27
28}
29