scala - Unable to import play.api.db.databases -


i developing application in scala play 2.5.4. want test database interactions, , attempting method recommended in this page.

the trouble is, unable import object play.api.db.databases. suspect may need add build.sbt file, since part of play api, i'm not sure case.

there things available, not shown in api doc

image

yes, need add in build.sbt file this:

librarydependencies += jdbc 

after that, reload activator , update dependencies (activator update/sbt update).

note after need add jdbc driver of database intend use. see more info in https://www.playframework.com/documentation/2.5.x/scaladatabase

edit

as stated in comments, may cause problems slick. unfortunately classes need use provided module, if causes problems, can try 2 things:


Comments