aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Parsers/ParserShowColumnsQuery.h
blob: a2941ca71d11caefddee949e755c0f5cd6bb62a1 (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>

namespace DB
{

/** Parses queries of the form
 * SHOW [EXTENDED] [FULL] COLUMNS FROM|IN tbl [FROM|IN db] [[NOT] LIKE|ILIKE expr | WHERE expr] [LIMIT n]
 */
class ParserShowColumnsQuery : public IParserBase
{
protected:
    const char * getName() const override { return "SHOW COLUMNS query"; }

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

}