You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now Doobie doesn't like this and gives the following error
no implicit values were found that match type deriving.Mirror.ProductOf[io.circe.Json
from the following code
importdoobie.implicits._importdoobie.postgres._importdoobie.postgres.implicits._importdoobie.postgres.circe.jsonb.implicits._sql"SELECT * FROM Artefacts".query[Artefact].to[List]
The reason I want to do this is I want to give the client the ability to add custom properties to the metadata if they want to
The text was updated successfully, but these errors were encountered:
You can define one with something like implicit val metaJsonObjct: Meta[JsonObject] = Meta[Json].timap(jsonToJsonObj)(jsonObjToJson). (I have left out the implementation of jsonToJsonObj and jsonObjToJson).
If you only need to read or write the JSON column then you can define just Put/Get, respectively.
I wonder if I am missing something about how to get this to work or is it something that's explicitly not supported
I have the following case class
Now Doobie doesn't like this and gives the following error
no implicit values were found that match type deriving.Mirror.ProductOf[io.circe.Json
from the following code
The reason I want to do this is I want to give the client the ability to add custom properties to the metadata if they want to
The text was updated successfully, but these errors were encountered: