我使用doobie查询一些数据,一切都很好,如下所示:of the book of doobie for more information.option.transact(xa).unsafeRunSync()
Error:(42, 12) not enough arguments for method query: (implicit evidence$1: <e
Doobie可以使用case类进行select *,以方便和正确地传递参数,但我不知道如何使用update和insert以类似的方式工作。由于Doobie遍历Course case类属性,并通过将它们的名称与courses数据库记录字段进行匹配来为其赋值,因此这种语法是可能的: def find(id: Id): Option[Course/** @return saved Course with new Id */ val insert