Last active
August 29, 2015 14:18
-
-
Save lildata/af5735fa0704335eacd7 to your computer and use it in GitHub Desktop.
That is like super cool from http://stackoverflow.com/questions/9636545/treating-an-sql-resultset-like-a-scala-stream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Iterator[String] { | |
def hasNext = resultSet.next() | |
def next() = resultSet.getString(1) | |
}.toStream |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment