#pragma once #include namespace DB { class Context; class IAST; using ASTPtr = std::shared_ptr; /** Allow to either drop table with all its data (DROP), or remove information about table (just forget) from server (DETACH). */ class InterpreterDropQuery : public IInterpreter { public: InterpreterDropQuery(const ASTPtr & query_ptr_, Context & context_); /// Drop table or database. BlockIO execute() override; private: ASTPtr query_ptr; Context & context; }; }