Skip to content

Instantly share code, notes, and snippets.



Last active Sep 20, 2019
What would you like to do?
val insertEventQuery: ConnectionIO[Int] =
sql"INSERT INTO events(msg) VALUES('made a http call')"
val result: IO[Int] = queryFromHttpCall
.map(countQuery => insertEventQuery >> countQuery)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.