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

package wow.doge.http4sdemo
import cats.effect.Resource
import monix.bio.Task
import slick.jdbc.JdbcBackend.Database
object SlickResource {
def apply(confPath: String) =
Resource.make(Task(Database.forConfig(confPath)))(db => Task(db.close()))
}