ClickHouse/src/Parsers/ASTDatabaseOrNone.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
463 B
C++
Raw Normal View History

2021-07-28 02:40:51 +00:00
#pragma once
2021-07-27 12:32:04 +00:00
2021-07-28 02:40:51 +00:00
#include <Parsers/IAST.h>
2021-07-27 12:32:04 +00:00
2021-07-28 02:40:51 +00:00
namespace DB
{
2021-07-27 12:32:04 +00:00
2021-07-28 02:40:51 +00:00
class ASTDatabaseOrNone : public IAST
{
public:
bool none = false;
String database_name;
2021-07-27 12:32:04 +00:00
2021-07-28 02:40:51 +00:00
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;
2021-07-27 12:32:04 +00:00
};
2021-07-28 02:40:51 +00:00
}
2021-07-27 12:32:04 +00:00