How Slick update JSONB column in PG?

575 Views Asked by At

I try to update column attrs (JSONB type) in this way, it compiles failed.

table
   .filter(_.sn === param.sn)
   .map(_.attrs)
   .update(param.attrs)

But if I update a INTEGER column in the same way, it succeed.

How should I update a JSONB column by Slick ?

0

There are 0 best solutions below