2012-06-18 07:49:19 +00:00
|
|
|
#pragma once
|
|
|
|
|
2015-10-21 14:57:10 +00:00
|
|
|
#include <DB/Parsers/ParserQueryWithOutput.h>
|
2012-06-18 07:49:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
/** Запрос типа такого:
|
2013-03-11 11:28:36 +00:00
|
|
|
* SHOW TABLES [FROM db] [[NOT] LIKE 'str']
|
2012-06-18 07:49:19 +00:00
|
|
|
* или
|
|
|
|
* SHOW DATABASES.
|
|
|
|
*/
|
2015-10-21 14:57:10 +00:00
|
|
|
class ParserShowTablesQuery : public ParserQueryWithOutput
|
2012-06-18 07:49:19 +00:00
|
|
|
{
|
|
|
|
protected:
|
2014-03-10 12:25:37 +00:00
|
|
|
const char * getName() const { return "SHOW TABLES|DATABASES query"; }
|
2015-04-11 03:10:23 +00:00
|
|
|
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected);
|
2012-06-18 07:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|