| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <Interpreters/IInterpreter.h> |
| 4 | #include <Parsers/IAST_fwd.h> |
| 5 | |
| 6 | |
| 7 | namespace DB |
| 8 | { |
| 9 | class Context; |
| 10 | |
| 11 | class InterpreterShowQuotasQuery : public IInterpreter |
| 12 | { |
| 13 | public: |
| 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 | |
| 21 | private: |
| 22 | ASTPtr query_ptr; |
| 23 | Context & context; |
| 24 | |
| 25 | String getRewrittenQuery(); |
| 26 | }; |
| 27 | |
| 28 | } |
| 29 |