Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support customizing conf schema, so it works with slick #17

Open
nafg opened this issue Sep 3, 2015 · 8 comments
Open

Please support customizing conf schema, so it works with slick #17

nafg opened this issue Sep 3, 2015 · 8 comments

Comments

@nafg
Copy link
Contributor

nafg commented Sep 3, 2015

For example here is the config I use with play-slick:

slick.dbs = {
  default = {
    driver = "slick.driver.H2Driver$"
    db = {
      url = "jdbc:h2:./database;AUTO_SERVER=TRUE"
      driver = org.h2.Driver
      user = "sa"
      password = ""
    }
  }
}
@shimamoto
Copy link

+1

@crisadamo
Copy link

Hey guys, I made a PR with a few changes to allow that. Please take a look at #18

@schmitch
Copy link

schmitch commented Oct 5, 2015

When is this merge ready? I'm really waiting for this, to change my evolutions to flyway.

@ssanj
Copy link

ssanj commented Dec 20, 2015

@schmitch In the meantime I've documented a workaround here.

@ghost
Copy link

ghost commented Dec 29, 2016

+1

1 similar comment
@yeryomenkom
Copy link

+1

@etspaceman
Copy link
Contributor

+1

A quick workaround for this is to simply re-define the configuration under the standard db.<database_name> config. It's a bit messy but it works. It would be great to be able to set the config via Slick though.

@Daxten
Copy link

Daxten commented Oct 25, 2017

db.default.driver = ${slick.dbs.default.db.driver}
db.default.url = ${slick.dbs.default.db.url}
db.default.username = ${slick.dbs.default.db.user}
db.default.password = ${slick.dbs.default.db.password}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants