1 | #pragma once |
---|---|
2 | |
3 | #include <Parsers/ASTQueryWithOutput.h> |
4 | |
5 | |
6 | namespace DB |
7 | { |
8 | /** SHOW QUOTAS |
9 | * SHOW QUOTA USAGE [CURRENT | ALL] |
10 | */ |
11 | class ASTShowQuotasQuery : public ASTQueryWithOutput |
12 | { |
13 | public: |
14 | bool usage = false; |
15 | bool current = false; |
16 | |
17 | String getID(char) const override; |
18 | ASTPtr clone() const override; |
19 | |
20 | protected: |
21 | void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override; |
22 | }; |
23 | |
24 | } |
25 |