Skip to main content

All Questions

Tagged with
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 ...
joesan's user avatar
  • 14.9k
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)....
techkuz's user avatar
  • 3,845