ClickHouse/src/Parsers/ASTDescribeCacheQuery.cpp
Alexey Milovidov db9026b5ac Fix trash
2024-02-19 11:09:37 +01:00

24 lines
633 B
C++

#include <Parsers/ASTDescribeCacheQuery.h>
#include <Common/quoteString.h>
namespace DB
{
String ASTDescribeCacheQuery::getID(char) const { return "DescribeCacheQuery"; }
ASTPtr ASTDescribeCacheQuery::clone() const
{
auto res = std::make_shared<ASTDescribeCacheQuery>(*this);
cloneOutputOptions(*res);
return res;
}
void ASTDescribeCacheQuery::formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const
{
settings.ostr << (settings.hilite ? hilite_keyword : "") << "DESCRIBE FILESYSTEM CACHE" << (settings.hilite ? hilite_none : "")
<< " " << quoteString(cache_name);
}
}