-
-
Save anuragsrivastava06/154506f09db7901b9bbbac69298191c7 to your computer and use it in GitHub Desktop.
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