mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
31 lines
529 B
C++
31 lines
529 B
C++
#pragma once
|
|
|
|
#include <Interpreters/IInterpreter.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
class IAST;
|
|
using ASTPtr = std::shared_ptr<IAST>;
|
|
|
|
|
|
/** 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;
|
|
};
|
|
|
|
|
|
}
|