query-result-set: Add rows() accessor function

Add rows() accessor function for iterating over the whole result set.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
Pekka Enberg
2015-05-28 15:48:54 +03:00
parent 5df4b51589
commit ab6dbc0d83

View File

@@ -88,6 +88,9 @@ public:
}
return _rows[idx];
}
const std::vector<result_set_row>& rows() const {
return _rows;
}
friend inline bool operator==(const result_set& x, const result_set& y);
friend std::ostream& operator<<(std::ostream& out, const result_set& rs);
};