2011-08-28 00:31:30 +00:00
|
|
|
#pragma once
|
2010-06-24 19:12:10 +00:00
|
|
|
|
|
|
|
#include <DB/Parsers/IAST.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/** SELECT запрос
|
|
|
|
*/
|
|
|
|
class ASTSelectQuery : public IAST
|
|
|
|
{
|
|
|
|
public:
|
2011-08-28 00:31:30 +00:00
|
|
|
ASTPtr select_expression_list;
|
|
|
|
ASTPtr database;
|
|
|
|
ASTPtr table;
|
|
|
|
ASTPtr where_expression;
|
|
|
|
ASTPtr group_expression_list;
|
|
|
|
ASTPtr having_expression;
|
|
|
|
ASTPtr order_expression_list;
|
|
|
|
ASTPtr limit_offset;
|
|
|
|
ASTPtr limit_length;
|
2011-10-30 05:19:41 +00:00
|
|
|
ASTPtr format;
|
2011-08-28 00:31:30 +00:00
|
|
|
|
2010-06-25 16:36:13 +00:00
|
|
|
ASTSelectQuery() {}
|
2011-08-13 21:05:18 +00:00
|
|
|
ASTSelectQuery(StringRange range_) : IAST(range_) {}
|
2010-06-24 19:12:10 +00:00
|
|
|
|
2011-08-09 19:19:00 +00:00
|
|
|
/** Получить текст, который идентифицирует этот элемент. */
|
|
|
|
String getID() { return "SelectQuery"; };
|
2010-06-24 19:12:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|