blob: 3d1cbaef070c5f7d54519412ef35ec8426f70d7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include <Parsers/ASTQueryWithOutput.h>
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<ASTDescribeCacheQuery>(*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;
}
};
}
|