My Play app uses H2 in-memory database when it runs in dev or test mode. I want to access this database when the app runs in dev mode. So I have the following options
1) Run the database in Embedded/Mixed mode. And make the play framework expose the database to other processes.
2) Run in H2 database in server mode (least preferred). But in this the framework should start the database server deamon process (not manually).
My current application.conf file looks like this.
db.default.driver=org.h2.Driver
db.default.url="jdbc:h2:mem:dev;MODE=MYSQL;DB_CLOSE_DELAY=-1;"
db.default.jndiName=dev