'Scala, Cassandra, Quill, Need impl logget batch pattern

I have cassandra DB with quill and dao method like this:

  override def patchLimit(id: Id, month: String, newTotalSpent: Money): F[Unit] =
    run(
      quote(
        querySchema[LimitsDbModel]("project.limits")
          .filter(_.id == lift(id.id))
          .filter(_.month == lift(month))
          .update(_.totalSpent -> lift(fromDomain(newTotalSpent))) // fromDomain -> simple converter
      )
    ).map(_ => ()).asEffect // asEffect -> turns the future into a cat effect

I want impl logget batch pattern, but i dont know how write this in quill syntax, do you can help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source