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:
|
2013-03-11 11:28:36 +00:00
|
|
|
* SHOW TABLES [FROM db] [[NOT] LIKE 'str']
|
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:
|
2018-02-02 14:45:36 +00:00
|
|
|
const char * getName() const { return "SHOW [TEMPORARY] TABLES|DATABASES [[NOT] LIKE 'str']"; }
|
2017-07-10 03:28:12 +00:00
|
|
|
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected);
|
2012-06-18 07:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|