You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
254 B

3 years ago
3 years ago
  1. package wow.doge.http4sdemo
  2. import cats.effect.Resource
  3. import monix.bio.Task
  4. import slick.jdbc.JdbcBackend.Database
  5. object SlickResource {
  6. def apply(confPath: String) =
  7. Resource.make(Task(Database.forConfig(confPath)))(db => Task(db.close()))
  8. }