jayy-lmao / sql-gen

EF inspired codegen for Rust
MIT License
18 stars 6 forks source link

Insert #1

Open jayy-lmao opened 1 year ago

jayy-lmao commented 1 year ago

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' 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.