sql-gen icon indicating copy to clipboard operation
sql-gen copied to clipboard

Insert

Open jayy-lmao opened this issue 2 years ago • 0 comments

Currently I'm at some indecision for inserts.

Whether to have dedicated insert objects with optional fields for anything with possible defaults or serial / auto incrementing ids.

Very open to input.

Was thinking something like having the input object, for example a 'product: impl Into<InputProduct>' with a From implementation generated so you could use either the product or the product input object. But maybe this makes it more needlessly complex for the consumer.

jayy-lmao avatar Jul 12 '23 08:07 jayy-lmao