开发者

How to access the development database with the Play! framework?

开发者 https://www.devze.com 2023-04-06 04:24 出处:网络
I want to see the tables of my Play! application with the H2 console, but all I see is a list of internal tables of the db engine. How can I view the tables of my app开发者_Go百科lication?

I want to see the tables of my Play! application with the H2 console, but all I see is a list of internal tables of the db engine. How can I view the tables of my app开发者_Go百科lication?

How to access the development database with the Play! framework?


Log on to the JDBC URL jdbc:h2:mem:play instead. That is where the development database runs on at least on my Play instance.


Most likely, you are looking a different database. Could you verify the database URL is really jdbc:h2:~/play?

You should also consider upgrading to a more recent version of H2. The version you are using (1.3.149) is a beta version.

0

精彩评论

暂无评论...
验证码 换一张
取 消