Created
May 2, 2016 22:49
-
-
Save eishay/9fe662dc9fbb9528d32952919c8cc325 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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