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.
12 lines
292 B
12 lines
292 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.source.close()) >> Task(db.close())
|
|
)
|
|
}
|