Avoiding race condition in postgres updates using slick

前端 未结 0 1392
灰色年华
灰色年华 2020-12-23 17:55
case class Item(id: String, count: Int).  

class ItemRepo(db: Database) {
  val query = TableQuery[ItemTable]


def updateAmount(id: String, incCount :Int) = {
   v         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题