1 | #pragma once |
---|---|
2 | |
3 | #include <Interpreters/IInterpreter.h> |
4 | #include <Parsers/IAST_fwd.h> |
5 | |
6 | |
7 | namespace DB |
8 | { |
9 | |
10 | class Context; |
11 | |
12 | |
13 | /** Rename one table |
14 | * or rename many tables at once. |
15 | */ |
16 | class InterpreterRenameQuery : public IInterpreter |
17 | { |
18 | public: |
19 | InterpreterRenameQuery(const ASTPtr & query_ptr_, Context & context_); |
20 | BlockIO execute() override; |
21 | |
22 | private: |
23 | ASTPtr query_ptr; |
24 | Context & context; |
25 | }; |
26 | |
27 | |
28 | } |
29 |