ClickHouse/dbms/include/DB/Parsers/ParserShowTablesQuery.h
2017-01-19 03:48:59 +04:00

22 lines
434 B
C++

#pragma once
#include <DB/Parsers/ParserQueryWithOutput.h>
namespace DB
{
/** Запрос типа такого:
* SHOW TABLES [FROM db] [[NOT] LIKE 'str']
* или
* SHOW DATABASES.
*/
class ParserShowTablesQuery : public IParserBase
{
protected:
const char * getName() const { return "SHOW TABLES|DATABASES query"; }
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, Pos & max_parsed_pos, Expected & expected);
};
}