Add support for findEach() on SqlQuery with RowMapper and scalar result

This commit is contained in:
rbygrave
2021-06-09 15:49:48 +12:00
parent 1df2ccb1c6
commit f3af43a9ce
9 changed files with 107 additions and 8 deletions
@@ -365,5 +365,10 @@ public interface SqlQuery extends Serializable {
* Return the list of values.
*/
List<T> findList();
/**
* Find streaming the result effectively consuming a row at a time.
*/
void findEach(Consumer<T> consumer);
}
}