mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
22 lines
463 B
C++
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;
|
|
};
|
|
}
|
|
|
|
|