ClickHouse/dbms/include/DB/Parsers/ASTKillQueryQuery.h

26 lines
573 B
C++
Raw Normal View History

2016-11-30 17:31:05 +00:00
#include <DB/Parsers/IAST.h>
2017-01-24 13:39:39 +00:00
#include <DB/Parsers/ASTQueryWithOutput.h>
2016-11-30 17:31:05 +00:00
namespace DB
{
2017-01-24 13:39:39 +00:00
class ASTKillQueryQuery : public ASTQueryWithOutput
2016-11-30 17:31:05 +00:00
{
public:
2017-01-30 12:20:11 +00:00
ASTPtr where_expression;
bool sync = false;
bool test = false;
2016-11-30 17:31:05 +00:00
ASTKillQueryQuery() = default;
2017-01-24 13:39:39 +00:00
ASTKillQueryQuery(const StringRange range_) : ASTQueryWithOutput(range_) {}
2016-11-30 17:31:05 +00:00
ASTPtr clone() const override { return std::make_shared<ASTKillQueryQuery>(*this); }
2017-01-24 13:39:39 +00:00
String getID() const override;
2016-11-30 17:31:05 +00:00
2017-01-24 13:39:39 +00:00
void formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
2016-11-30 17:31:05 +00:00
};
}