| 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 InterpreterShowRowPoliciesQuery : public IInterpreter |
| 12 | { |
| 13 | public: |
| 14 | InterpreterShowRowPoliciesQuery(const ASTPtr & query_ptr_, Context & context_); |
| 15 | BlockIO execute() override; |
| 16 | |
| 17 | private: |
| 18 | String getRewrittenQuery() const; |
| 19 | String getResultDescription() const; |
| 20 | |
| 21 | ASTPtr query_ptr; |
| 22 | Context & context; |
| 23 | }; |
| 24 | |
| 25 | } |
| 26 |