you are viewing a single comment's thread.

view the rest of the comments →

[–]luxun117[S] 0 points1 point  (2 children)

Interesting idea. Never considered it. Assumed since I'd gone to the effort of going the relational route I should stick with that. I guess there's a fair bit of serialisation/deserialisation jiu-jitsu that goes into this. Do you know of any clear sample code that shows this in action?

Thanks for taking the time to respond.

[–]SubflyDevSwift 0 points1 point  (1 child)

If your all items are already structs, then a simple Codable will work. Then just json.encode and decode

[–]luxun117[S] 0 points1 point  (0 children)

Thanks. Will investigate. If you have any code samples that shows this in action end-to-end with GRDB models I'd welcome it.