Scala-Play-Slick-Demo/app/services/MyService.scala
Rohan Sircar cb9524eac7 Many changes
Rewrote slick db service using monix task instead of future
Added cats IO to controller to make use of above db service
Added action methods that support effect wrappers other than future
Added play-flyway to auto-manage migrations
Moved migration files to appropriate directory as a result of above
Added cors filter to work with separately hosted frontend
Made logger log at debug
2020-08-22 16:18:11 +05:30

18 lines
471 B
Scala

// package service
// import javax.inject._
// import play.api.db.slick.DatabaseConfigProvider
// import scala.concurrent.ExecutionContext
// import play.api.db.slick.HasDatabaseConfigProvider
// import slick.jdbc.JdbcProfile
// @Singleton
// class MyService @Inject() (
// protected val dbConfigProvider: DatabaseConfigProvider,
// implicit val ec: ExecutionContext
// ) extends HasDatabaseConfigProvider[JdbcProfile] {
// import profile.api._
// db
// }