mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
31 lines
774 B
C++
31 lines
774 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Parsers/ASTQueryWithTableAndOutput.h>
|
||
|
#include <Parsers/ASTQueryWithOnCluster.h>
|
||
|
|
||
|
|
||
|
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<ASTUndropQuery>(clone(), params.default_database);
|
||
|
}
|
||
|
|
||
|
QueryKind getQueryKind() const override { return QueryKind::Undrop; }
|
||
|
|
||
|
protected:
|
||
|
void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
|
||
|
};
|
||
|
|
||
|
}
|