ClickHouse/src/Parsers/ParserShowTablesQuery.h

22 lines
472 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:
* 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.
*/
class ParserShowTablesQuery : public IParserBase
2012-06-18 07:49:19 +00:00
{
protected:
const char * getName() const override { return "SHOW [TEMPORARY] TABLES|DATABASES|CLUSTERS|CLUSTER 'name' [[NOT] [I]LIKE 'str'] [LIMIT expr]"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
2012-06-18 07:49:19 +00:00
};
}