2023-03-26 14:36:38 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Parsers/IAST_fwd.h>
|
|
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
/// Query SHOW COLUMNS
|
|
|
|
class ASTShowColumnsQuery : public ASTQueryWithOutput
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool extended = false;
|
|
|
|
bool full = false;
|
|
|
|
bool not_like = false;
|
|
|
|
bool case_insensitive_like = false;
|
|
|
|
|
|
|
|
ASTPtr where_expression;
|
|
|
|
ASTPtr limit_length;
|
|
|
|
|
2023-05-02 12:14:17 +00:00
|
|
|
String database;
|
|
|
|
String table;
|
2023-03-26 14:36:38 +00:00
|
|
|
|
|
|
|
String like;
|
|
|
|
|
|
|
|
String getID(char) const override { return "ShowColumns"; }
|
|
|
|
ASTPtr clone() const override;
|
|
|
|
QueryKind getQueryKind() const override { return QueryKind::Show; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|