mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
22 lines
479 B
C++
22 lines
479 B
C++
#pragma once
|
|
|
|
#include <Parsers/IParserBase.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Query like this:
|
|
* SHOW TABLES [FROM db] [[NOT] [I]LIKE 'str'] [LIMIT expr]
|
|
* or
|
|
* SHOW DATABASES.
|
|
*/
|
|
class ParserShowTablesQuery : public IParserBase
|
|
{
|
|
protected:
|
|
const char * getName() const override { return "SHOW [FULL] [TEMPORARY] TABLES|DATABASES|CLUSTERS|CLUSTER 'name' [[NOT] [I]LIKE 'str'] [LIMIT expr]"; }
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
|
};
|
|
|
|
}
|