Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Created July 8, 2015 17:19
  • 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 pjazdzewski1990/3c9975db6fc1a00e04ed to your computer and use it in GitHub Desktop.
val dbConfig = DatabaseConfig.forConfig[JdbcProfile]("postgres")
val db = dbConfig.db // all database interactions are realised through this object
import dbConfig.driver.api._ // imports all the DSL goodies for the configured database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment