pub fn parse_select(input: String) -> Result<Vec<String>, ParseError>
Expand description

Parses a select clause in the format ‘select col1, col2;’.

Example:

let result = parse_select("select brigadeiro, churros;".to_string()).unwrap();
let v = vec!["brigadeiro".to_string(), "churros".to_string()];
assert_eq!(v, result);

Notice that this function does not yet support the FROM clause.