1 | #pragma once |
---|---|
2 | |
3 | #include <Parsers/ASTQueryWithOutput.h> |
4 | |
5 | |
6 | namespace DB |
7 | { |
8 | /// SHOW [ROW] POLICIES [CURRENT] [ON [database.]table] |
9 | class ASTShowRowPoliciesQuery : public ASTQueryWithOutput |
10 | { |
11 | public: |
12 | bool current = false; |
13 | String database; |
14 | String table_name; |
15 | |
16 | String getID(char) const override { return "SHOW POLICIES query"; } |
17 | ASTPtr clone() const override { return std::make_shared<ASTShowRowPoliciesQuery>(*this); } |
18 | |
19 | protected: |
20 | void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override; |
21 | }; |
22 | |
23 | } |
24 |