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

This commit is contained in:
rbygrave committed 2021-06-09 15:49:48 +12:00
1 parent 1df2ccb1c6
commit f3af43a9ce
9 files changed
+107 -8

No files matched your search

@@ -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);
}
}