#pragma once #include #include namespace DB { /** UNDROP query */ class ASTUndropQuery : public ASTQueryWithTableAndOutput, public ASTQueryWithOnCluster { public: /** Get the text that identifies this element. */ String getID(char) const override; ASTPtr clone() const override; ASTPtr getRewrittenASTWithoutOnCluster(const WithoutOnClusterASTRewriteParams & params) const override { return removeOnCluster(clone(), params.default_database); } QueryKind getQueryKind() const override { return QueryKind::Undrop; } protected: void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override; }; }