mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
36 lines
705 B
C++
36 lines
705 B
C++
#pragma once
|
|
|
|
#include <iomanip>
|
|
#include <Parsers/IAST.h>
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
|
|
/** Query SHOW TABLES or SHOW DATABASES
|
|
*/
|
|
class ASTShowTablesQuery : public ASTQueryWithOutput
|
|
{
|
|
public:
|
|
bool databases{false};
|
|
bool dictionaries{false};
|
|
bool temporary{false};
|
|
String from;
|
|
String like;
|
|
bool not_like{false};
|
|
ASTPtr where_expression;
|
|
ASTPtr limit_length;
|
|
|
|
/** Get the text that identifies this element. */
|
|
String getID(char) const override { return "ShowTables"; }
|
|
|
|
ASTPtr clone() const override;
|
|
|
|
protected:
|
|
void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
|
|
};
|
|
|
|
}
|