ClickHouse/dbms/src/Parsers/ParserShowTablesQuery.h
2019-09-15 19:07:27 +03:00

22 lines
424 B
C++

#pragma once
#include <Parsers/IParserBase.h>
namespace DB
{
/** Query like this:
* SHOW TABLES [FROM db] [[NOT] LIKE 'str'] [LIMIT expr]
* or
* SHOW DATABASES.
*/
class ParserShowTablesQuery : public IParserBase
{
protected:
const char * getName() const { return "SHOW [TEMPORARY] TABLES|DATABASES [[NOT] LIKE 'str'] [LIMIT expr]"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected);
};
}