I am using the slick of alpakka to config the database. I want to configure the slick config in runtime, for example:
For slick.jdbc.PostgresProfile$ section, how to put "$" in the config?
s"""
|config {
| profile = "slick.jdbc.PostgresProfile$"
| db {
| dataSourceClass = "slick.jdbc.DriverDataSource"
| properties = {
| driver = "org.postgresql.Driver"
| url = "${dbUrl}"
| user = "${dbUser}"
| password = "${dbPassword}"
| }
| }
|}
|
""".stripMargin