When I query a database and receive a (forward-only, read-only) ResultSet back, the ResultSet acts like a list of database rows.
I am trying to find some way to trea
Another variant on the above, which works with Scala 2.12:
implicit class ResultSetOps(resultSet: ResultSet) { def map[T](f: ResultSet => T): Iterator[T] = Iterator.continually(resultSet).takeWhile(_.next()).map(f) }