All Questions
2
questions
0
votes
1
answer
120
views
Scala Cats Effect Wrapping an Implementation from the Effect Type of the Enclosing Class
I have an implementation that looks like this:
final class MyServiceImpl[M[_]: Async](dbCfg: DBConfig)(implicit ec: Scheduler) extends MyService[M] {
......
......
......
......
}
Inside this ...
6
votes
1
answer
2k
views
Doobie batch update using generics
Can you make batch update in doobie with generic types?
This code:
def insertMany[T](ps: List[T]): Task[List[T]] = {
val sql = "insert into person (name, age) values (?, ?)"
Update[T](sql)....