aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/ParserTablePropertiesQuery.h
blob: 8d2c26d34ab83f3fbe3977df175ee5e45f8b4486 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <Parsers/IParserBase.h>
#include <Parsers/ExpressionElementParsers.h>


namespace DB
{

/** Query (EXISTS | SHOW CREATE) [DATABASE|TABLE|DICTIONARY] [db.]name [FORMAT format]
  */
class ParserTablePropertiesQuery : public IParserBase
{
protected:
    const char * getName() const override { return "EXISTS or SHOW CREATE query"; }
    bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
};

}