mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
27 lines
599 B
C++
27 lines
599 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
#include <Parsers/ASTQueryWithOnCluster.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ASTDropFunctionQuery : public IAST, public ASTQueryWithOnCluster
|
|
{
|
|
public:
|
|
String function_name;
|
|
|
|
bool if_exists = false;
|
|
|
|
String getID(char) const override { return "DropFunctionQuery"; }
|
|
|
|
ASTPtr clone() const override;
|
|
|
|
void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override;
|
|
|
|
ASTPtr getRewrittenASTWithoutOnCluster(const std::string &) const override { return removeOnCluster<ASTDropFunctionQuery>(clone()); }
|
|
};
|
|
|
|
}
|