mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
22 lines
382 B
C
22 lines
382 B
C
|
#pragma once
|
||
|
|
||
|
#include <DB/Parsers/IParserBase.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
/** Запрос типа такого:
|
||
|
* SHOW TABLES [FROM db] [LIKE 'str']
|
||
|
* или
|
||
|
* SHOW DATABASES.
|
||
|
*/
|
||
|
class ParserShowTablesQuery : public IParserBase
|
||
|
{
|
||
|
protected:
|
||
|
String getName() { return "SHOW TABLES|DATABASES query"; }
|
||
|
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, String & expected);
|
||
|
};
|
||
|
|
||
|
}
|