ClickHouse/dbms/include/DB/Parsers/ParserShowTablesQuery.h

22 lines
382 B
C
Raw Normal View History

2012-06-18 07:49:19 +00:00
#pragma once
#include <DB/Parsers/IParserBase.h>
namespace DB
{
/** Запрос типа такого:
* SHOW TABLES [FROM db] [LIKE 'str']
* или
* SHOW DATABASES.
*/
class ParserShowTablesQuery : public IParserBase
{
protected:
String getName() { return "SHOW TABLES|DATABASES query"; }
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, String & expected);
};
}