mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
22 lines
444 B
C++
22 lines
444 B
C++
#pragma once
|
|
|
|
#include <DB/Parsers/ParserQueryWithOutput.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Запрос типа такого:
|
|
* SHOW TABLES [FROM db] [[NOT] LIKE 'str']
|
|
* или
|
|
* SHOW DATABASES.
|
|
*/
|
|
class ParserShowTablesQuery : public ParserQueryWithOutput
|
|
{
|
|
protected:
|
|
const char * getName() const { return "SHOW TABLES|DATABASES query"; }
|
|
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected);
|
|
};
|
|
|
|
}
|