ClickHouse/dbms/src/Parsers/ParserShowTablesQuery.h

22 lines
424 B
C++
Raw Normal View History

2012-06-18 07:49:19 +00:00
#pragma once
#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.
*/
class ParserShowTablesQuery : public IParserBase
2012-06-18 07:49:19 +00:00
{
protected:
2019-09-15 16:07:27 +00:00
const char * getName() const { return "SHOW [TEMPORARY] TABLES|DATABASES [[NOT] LIKE 'str'] [LIMIT expr]"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected);
2012-06-18 07:49:19 +00:00
};
}