Skip to main content

evaluate_row

Function evaluate_row 

Source
pub fn evaluate_row(
    query: &SelectQuery,
    row: &CsvRow<'_>,
) -> Result<Option<Vec<String>>, SelectError>
Expand description

Apply WHERE + projection to a single row. Returns Ok(Some(values)) for matched rows (one String per SELECT item, in declaration order), Ok(None) if WHERE excluded the row, Err(...) only on runtime evaluation problems (a projected column not in the row, etc).