#pragma once #include #include #include namespace DB { class Context; using DatabaseAndTable = std::pair; class AccessRightsElements; class InterpreterUndropQuery : public IInterpreter, WithMutableContext { public: InterpreterUndropQuery(const ASTPtr & query_ptr_, ContextMutablePtr context_); /// Undrop table. BlockIO execute() override; private: AccessRightsElements getRequiredAccessForDDLOnCluster() const; ASTPtr query_ptr; BlockIO executeToTable(ASTUndropQuery & query); }; }