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

#include <Parsers/IParserBase.h>

namespace DB
{

/** Parses queries of the form
 * SHOW [EXTENDED] INDEX|INDEXES|KEYS FROM|IN tbl [FROM|IN db] [WHERE expr]
 */
class ParserShowIndexesQuery : public IParserBase
{
protected:
    const char * getName() const override { return "SHOW INDEXES query"; }

    bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
};

}