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