Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Created July 8, 2015 17:19
Show Gist options
  • Save pjazdzewski1990/3c9975db6fc1a00e04ed to your computer and use it in GitHub Desktop.
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