mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 11:33:46 +00:00
28 lines
501 B
C
28 lines
501 B
C
|
#pragma once
|
||
|
|
||
|
#include <DB/Parsers/IAST.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
|
||
|
/** OPTIMIZE запрос
|
||
|
*/
|
||
|
class ASTOptimizeQuery : public IAST
|
||
|
{
|
||
|
public:
|
||
|
String database;
|
||
|
String table;
|
||
|
|
||
|
ASTOptimizeQuery() {}
|
||
|
ASTOptimizeQuery(StringRange range_) : IAST(range_) {}
|
||
|
|
||
|
/** Получить текст, который идентифицирует этот элемент. */
|
||
|
String getID() { return "OptimizeQuery_" + database + "_" + table; };
|
||
|
|
||
|
ASTPtr clone() const { return new ASTOptimizeQuery(*this); }
|
||
|
};
|
||
|
|
||
|
}
|