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