简体   繁体   中英

Does scala play 1.2.4 have compatibility with postgres?

There are so many horror stories about postgres and Play framework here on SO and on blogs.
So I am wondering does Play 1.2.4, scala and anrom(magic) work with postgres or not.

In my test case I get the following when switching to Postgres .

错误

The db is correctly created by 1.sql in evolutions. And the log prints Connected to jdbc:postgresql://localhost/postgres_play

在此处输入图片说明

Anorm works just fine with postgresql, we're currently converting a complex postgresql based app from PHP to play with scala and have had no DB related issues at all. As to your error, I'm not 100% certain but it may be simply that it is looking for the table "Player" and you have the table "player" in your database. Show us the code where you are defining the Player object that extends magic.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM