ClickHouse/dbms/src/Parsers/ParserShowTablesQuery.h

22 lines
398 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] LIKE 'str']
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:
2018-02-02 14:45:36 +00:00
const char * getName() const { return "SHOW [TEMPORARY] TABLES|DATABASES [[NOT] LIKE 'str']"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected);
2012-06-18 07:49:19 +00:00
};
}