2012-06-18 07:49:19 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-09 14:32:11 +00:00
|
|
|
#include <Parsers/IParserBase.h>
|
2012-06-18 07:49:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2017-05-27 17:29:55 +00:00
|
|
|
/** Query like this:
|
2020-07-05 15:57:59 +00:00
|
|
|
* SHOW TABLES [FROM db] [[NOT] [I]LIKE 'str'] [LIMIT expr]
|
2017-05-27 17:29:55 +00:00
|
|
|
* or
|
2012-06-18 07:49:19 +00:00
|
|
|
* SHOW DATABASES.
|
|
|
|
*/
|
2017-01-11 19:05:46 +00:00
|
|
|
class ParserShowTablesQuery : public IParserBase
|
2012-06-18 07:49:19 +00:00
|
|
|
{
|
|
|
|
protected:
|
2020-07-05 15:57:59 +00:00
|
|
|
const char * getName() const override { return "SHOW [TEMPORARY] TABLES|DATABASES|CLUSTERS|CLUSTER 'name' [[NOT] [I]LIKE 'str'] [LIMIT expr]"; }
|
2020-01-21 08:54:26 +00:00
|
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
2012-06-18 07:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|