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:
|
2019-09-15 16:07:27 +00:00
|
|
|
* SHOW TABLES [FROM db] [[NOT] 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-01-21 08:54:26 +00:00
|
|
|
const char * getName() const override { return "SHOW [TEMPORARY] TABLES|DATABASES [[NOT] LIKE 'str'] [LIMIT expr]"; }
|
|
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
|
2012-06-18 07:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|