| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <Parsers/IParserBase.h> |
| 4 | |
| 5 | |
| 6 | namespace DB |
| 7 | { |
| 8 | |
| 9 | /** Query like this: |
| 10 | * SHOW TABLES [FROM db] [[NOT] LIKE 'str'] [LIMIT expr] |
| 11 | * or |
| 12 | * SHOW DATABASES. |
| 13 | */ |
| 14 | class ParserShowTablesQuery : public IParserBase |
| 15 | { |
| 16 | protected: |
| 17 | const char * getName() const { return "SHOW [TEMPORARY] TABLES|DATABASES [[NOT] LIKE 'str'] [LIMIT expr]"; } |
| 18 | bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected); |
| 19 | }; |
| 20 | |
| 21 | } |
| 22 |