2013-02-21 10:02:33 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <DB/Parsers/IParserBase.h>
|
|
|
|
#include <DB/Parsers/ExpressionElementParsers.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2013-10-21 13:52:44 +00:00
|
|
|
/** Запрос (EXISTS | SHOW CREATE | (DESCRIBE | DESC) ) [TABLE] [db.]name [FORMAT format]
|
2013-02-21 10:02:33 +00:00
|
|
|
*/
|
|
|
|
class ParserTablePropertiesQuery : public IParserBase
|
|
|
|
{
|
|
|
|
protected:
|
2014-03-10 12:25:37 +00:00
|
|
|
const char * getName() const { return "EXISTS, SHOW CREATE or DESCRIBE query"; }
|
|
|
|
bool parseImpl(Pos & pos, Pos end, ASTPtr & node, const char *& expected);
|
2013-02-21 10:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|