1 | #pragma once |
---|---|
2 | |
3 | #include <Interpreters/IInterpreter.h> |
4 | #include <Parsers/IAST_fwd.h> |
5 | |
6 | |
7 | namespace DB |
8 | { |
9 | class ASTCreateRowPolicyQuery; |
10 | struct RowPolicy; |
11 | |
12 | |
13 | class InterpreterCreateRowPolicyQuery : public IInterpreter |
14 | { |
15 | public: |
16 | InterpreterCreateRowPolicyQuery(const ASTPtr & query_ptr_, Context & context_) : query_ptr(query_ptr_), context(context_) {} |
17 | |
18 | BlockIO execute() override; |
19 | |
20 | private: |
21 | void updateRowPolicyFromQuery(RowPolicy & policy, const ASTCreateRowPolicyQuery & query); |
22 | |
23 | ASTPtr query_ptr; |
24 | Context & context; |
25 | }; |
26 | } |
27 |