Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Suggestion: Improve DB config docs for default Postgres/MySQL connections #1861
Just a suggestion but as a first time user of Slick, the docs around database configuration were incomplete for connecting to a PostgresDB using the Database.forConfig method.
It's great we've got H2 docs in there, but seeing as Postrges and MySQL are two of the more popular RDBMS db's out there, I think it would save a whole lot of people a lot of time if there was a more complete example of how to configure their projects with Slick. At the very least for the recommended TypeSafe config approach for connecting to a localhost db.
For example, my final configuration files that I ended up with to complete a connection with slick, using connection pooling to localhost, looked like this:
I think if I had this in there it would save people a lot of time trying to find these missing pieces of info
changed the title
Suggestion: Improve DB Connection Docs for default settings for with HikariCP and postgres
Mar 5, 2018
Hello @adeperio - would you be interested in creating a pull request to improve this documentation?
I think the relevant page would be: http://slick.lightbend.com/doc/3.2.1/database.html
The source for the page is: https://github.com/slick/slick/blob/master/doc/src/database.md
You can build the page locally by cloning the slick github project and running
referenced this issue
Mar 7, 2018
SO SO SO much this. OMG. I've spent HOURS trying to get the right combination of magic to get MySQL working, and now I'm getting a driver error. I'm totally going to miss my deadline for this project, I've never had this much trouble getting any Scala system working. gah.
Hi all, Slick is currently being developed and maintained by the community, i.e. you and me. If this was such a good piece of advice, I hope one of you is up to the task of turning it into a good PR so that those coming after you might find it from a more convenient place.