#pragma once #include namespace DB { class ASTDescribeCacheQuery : public ASTQueryWithOutput { public: String cache_name; String getID(char) const override { return "DescribeCacheQuery"; } ASTPtr clone() const override { auto res = std::make_shared(*this); cloneOutputOptions(*res); return res; } protected: void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override { settings.ostr << (settings.hilite ? hilite_keyword : "") << "DESCRIBE FILESYSTEM CACHE" << (settings.hilite ? hilite_none : "") << " " << cache_name; } }; }