ClickHouse/src/Parsers/ASTDropFunctionQuery.h

27 lines
599 B
C++
Raw Normal View History

2021-05-14 22:43:04 +00:00
#pragma once
#include <Parsers/IAST.h>
#include <Parsers/ASTQueryWithOnCluster.h>
2021-05-14 22:43:04 +00:00
namespace DB
{
class ASTDropFunctionQuery : public IAST, public ASTQueryWithOnCluster
2021-05-14 22:43:04 +00:00
{
public:
String function_name;
bool if_exists = false;
2021-05-14 22:43:04 +00:00
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()); }
2021-05-14 22:43:04 +00:00
};
}