2018-06-19 19:52:56 +02:00
|
|
|
|
#include "SqlAstSelect.h"
|
|
|
|
|
|
#include "SqlAstSelectList.h"
|
|
|
|
|
|
#include "SqlParser.h"
|
|
|
|
|
|
|
2019-01-28 20:53:10 +01:00
|
|
|
|
namespace SqlAst {
|
|
|
|
|
|
|
2018-06-19 19:52:56 +02:00
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<SqlAst::Select> parseSelect(SqlParser &parser)
|
|
|
|
|
|
{
|
2019-01-28 20:53:10 +01:00
|
|
|
|
auto ast_select = std::make_shared<SqlAst::Select>();
|
2018-06-19 19:52:56 +02:00
|
|
|
|
// parse select list of expression + aliasses, required
|
2019-01-28 20:53:10 +01:00
|
|
|
|
// auto select_list = parseSelectList(parser);
|
|
|
|
|
|
// ast_select->setSelectList(select_list);
|
2018-06-19 19:52:56 +02:00
|
|
|
|
|
|
|
|
|
|
// parse optional from list
|
|
|
|
|
|
|
|
|
|
|
|
return ast_select;
|
|
|
|
|
|
}
|
2019-01-28 20:53:10 +01:00
|
|
|
|
|
|
|
|
|
|
}
|