mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
21 lines
650 B
C++
21 lines
650 B
C++
|
#include <Parsers/ASTDropNamedCollectionQuery.h>
|
||
|
#include <Common/quoteString.h>
|
||
|
#include <IO/Operators.h>
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
ASTPtr ASTDropNamedCollectionQuery::clone() const
|
||
|
{
|
||
|
return std::make_shared<ASTDropNamedCollectionQuery>(*this);
|
||
|
}
|
||
|
|
||
|
void ASTDropNamedCollectionQuery::formatImpl(const IAST::FormatSettings & settings, IAST::FormatState &, IAST::FormatStateStacked) const
|
||
|
{
|
||
|
settings.ostr << (settings.hilite ? hilite_keyword : "") << "DROP NAMED COLLECTION ";
|
||
|
settings.ostr << (settings.hilite ? hilite_identifier : "") << backQuoteIfNeed(collection_name) << (settings.hilite ? hilite_none : "");
|
||
|
formatOnCluster(settings);
|
||
|
}
|
||
|
|
||
|
}
|