Skip to content

Instantly share code, notes, and snippets.

@jczuchnowski
Created August 4, 2019 21:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jczuchnowski/cd22a0a8810f59e41ccdabd9fa5d367c to your computer and use it in GitHub Desktop.
val db = Database.forConfig("h2mem1")
val queryAction: DBIO[Option[Int]] = ...
val result: Future[Option[Int]] = db.run(queryAction)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment