ClickHouse/src/Parsers/ASTDatabaseOrNone.h
2021-07-28 14:05:22 +08:00

22 lines
463 B
C++

#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;
};
}