Re: vibe.d json deserializeJson!Foo and ddbc.update!Foo

2021-02-13 Thread Chris Bare via Digitalmars-d-learn
On Saturday, 13 February 2021 at 01:21:56 UTC, Steven Schveighoffer wrote: On 2/12/21 6:22 PM, Chris Bare wrote: [...] Does @ignore work? That's a UDA that tells vibe to ignore the field. Though I don't know if it means it leaves it alone completely. https://vibed.org/api/vibe.data.seriali

Re: vibe.d json deserializeJson!Foo and ddbc.update!Foo

2021-02-12 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/12/21 6:22 PM, Chris Bare wrote: I'm working on a project with vibe.d and ddbc to access my database. Both have powerful functions that operate on Struct types to avoid a lot of boilerplate code. I have a web site that sends a json message to update a record. deserializeJson creates a new

vibe.d json deserializeJson!Foo and ddbc.update!Foo

2021-02-12 Thread Chris Bare via Digitalmars-d-learn
I'm working on a project with vibe.d and ddbc to access my database. Both have powerful functions that operate on Struct types to avoid a lot of boilerplate code. I have a web site that sends a json message to update a record. deserializeJson creates a new Foo record containing the json data. Ho