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

#include <Parsers/IAST.h>

namespace DB
{

class ASTDatabaseOrNone : public IAST
{
public:
    bool none = false;
    String database_name;

    bool isNone() const { return none; }
    String getID(char) const override { return "DatabaseOrNone"; }
    ASTPtr clone() const override { return std::make_shared<ASTDatabaseOrNone>(*this); }
    void formatImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
};
}