mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
29 lines
554 B
C
29 lines
554 B
C
|
#pragma once
|
||
|
|
||
|
#include <DB/Parsers/IAST.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
|
||
|
/** Запрос SHOW TABLES или SHOW DATABASES
|
||
|
*/
|
||
|
class ASTShowTablesQuery : public IAST
|
||
|
{
|
||
|
public:
|
||
|
bool databases;
|
||
|
String from;
|
||
|
String like;
|
||
|
|
||
|
ASTShowTablesQuery() : databases(false) {}
|
||
|
ASTShowTablesQuery(StringRange range_) : IAST(range_), databases(false) {}
|
||
|
|
||
|
/** Получить текст, который идентифицирует этот элемент. */
|
||
|
String getID() { return "ShowTables"; };
|
||
|
|
||
|
ASTPtr clone() const { return new ASTShowTablesQuery(*this); }
|
||
|
};
|
||
|
|
||
|
}
|