/PostgresDbComponent.scala Secret
Created
July 23, 2017 09:42
Star
You must be signed in to star a gist
This file contains 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
trait PostgresDbComponent extends DBComponent { | |
val driver = PostgresProfile | |
import driver.api.Database | |
val db: Database = DBConnection.connectionPool | |
} | |
object DBConnection { | |
val connectionPool = Database.forConfig("db") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment