Skip to content

Instantly share code, notes, and snippets.

@eishay
Created May 2, 2016 22:49
Show Gist options
  • Save eishay/9fe662dc9fbb9528d32952919c8cc325 to your computer and use it in GitHub Desktop.
Save eishay/9fe662dc9fbb9528d32952919c8cc325 to your computer and use it in GitHub Desktop.
case class MyDbInfo() extends DbInfo {
def database = SlickDatabase.forDataSource(DB.getDataSource("shoebox")(Play.current))
def driverName = Play.current.configuration.getString("db.shoebox.driver").get
}
...
install(new SlickModule(new MyDbInfo()))
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment