Created
October 25, 2019 08:19
-
-
Save martinlechner1/e751342aa41ea21bc8b439f94ba670e9 to your computer and use it in GitHub Desktop.
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
def queryProgram(xa: Transactor[IO]) = | |
sql"""SELECT your_fields FROM your_table""" | |
.query[YourModel] | |
.stream | |
.transact(xa) | |
.evalMap(d => IO(println(d))) | |
.compile | |
.drain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment