mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
24 lines
633 B
C++
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);
|
|
}
|
|
|
|
}
|