2014-08-05 10:52:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <DB/Parsers/IAST.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
struct ASTCheckQuery : public IAST
|
|
|
|
{
|
|
|
|
ASTCheckQuery(StringRange range_ = StringRange()) : IAST(range_) {};
|
|
|
|
|
|
|
|
/** Получить текст, который идентифицирует этот элемент. */
|
2014-12-17 15:26:24 +00:00
|
|
|
String getID() const override { return ("CheckQuery_" + database + "_" + table); };
|
2014-08-05 10:52:06 +00:00
|
|
|
|
2014-12-17 15:26:24 +00:00
|
|
|
ASTPtr clone() const override
|
2014-08-05 10:52:06 +00:00
|
|
|
{
|
|
|
|
return new ASTCheckQuery(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string database;
|
|
|
|
std::string table;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|