Play framework postgresql jdbc driver
Notify me of new comments via email. Notify me of new posts via email. Configure the driver The first thing you should do is configure the driver dependency. Learn more about bidirectional Unicode characters Show hidden characters.
Share this: Twitter Facebook. Like this: Like Loading Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:. Email required Address never made public. Name required. Improve this answer. Anthony Skipper Anthony Skipper 1 1 gold badge 9 9 silver badges 11 11 bronze badges. The Play framework already includes the driver for Postgres. Pere Villega Pere Villega None of this is true for Play 2 — Mike Slinn.
MikeSlinn yes, well, this was a Play 1 question : — Pere Villega. Get it from here Alternatively you may use - postgresql 9. Doesn't the dependency pull it down? Dependency will pull it down if the jar is available in Maven central. But as I said, this latest version is not available yet. It doesnt matter what version i pull down. I get an error. Here is what i have setup: application. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. With those libraries I was able to keep my data relational and my app Reactive all the way down.
Lets walk through how to do it in a Play Framework app. TL;DR: Jump to the the full source. If you want to start from scratch, create a new Play app from the Play Scala Seed. The play-flyway library handles schema evolutions using Flyway. The scalikejdbc-async-play-plugin library manages the lifecycle of the connection pool used by scalikejdbc-async in a Play app.
You will of course need a Postgres database to proceed. You can either install one locally or create a free one on the Heroku Postres cloud service. To run this app locally you can start the Play app by starting the Activator UI or from the command line with:.
0コメント