Simple cursor to iterate over rows.