Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Play Scala: How to access multiple databases with anorm and Magic[T]
- db_other.url=jdbc:mysql://localhost/test
- db_other.driver=com.mysql.jdbc.Driver
- db_other.user=root
- db_other.pass=
- var sqlQuery = SQL( //I guess some config params should be set here, but how?
- """
- select * from Country
- """
- )
- # play.api.db.DB.class
- def withConnection[A](name : scala.Predef.String)(block : scala.Function1[java.sql.Connection, A])(implicit app : play.api.Application) : A = { /* compiled code */ }
Add Comment
Please, Sign In to add comment