[][src]Function stellar_sql::sql::parser::parse_select

fn parse_select(
    iter: &mut Peekable<Iter<Symbol>>
) -> Result<QueryData, ParserError>

Parse select query

Syntax:

SELECT  DISTINCT  TOP <top_specification> <select_list>
FROM <left_table>
     <join_type> JOIN <right_table>
     ON <join_condition>
WHERE <where_condition>
GROUP BY <group_by_list>
WITH {CUBE | ROLLUP}
HAVING <having_condition>
ORDER BY <order_by_list>