-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] CLI / Entity generator: Optionally derive serde::{Serialize/Deserialize}
#236
Comments
serde::{Serialize/Deserialize}
Hi Tim, thanks a lot.
I am glad to hear that! (It still needs some polishing) Yes. I just don't want to force every attribute to impl serde for now, as it will be some extra burden for custom types. It seems that right now it is perfectly doable (expect for the extra compile time). So it's a good idea to add it as an optional argument, and we might turn it on by default at some point. |
I gree |
Thanks for your feedback! I hope I prepared the PR in #237 as expected... |
Dear SeaORM team,
another question / request from my side.
I just generated Sea ORM entities from my existing database structure using the
sea-orm-cli
tool. This worked like a charm. however it does not have an option to also add the the derive attributes forserde::{Serialize,Deserialize}
traits. I know there is JSON support usinginto_json()
however aserde_json::Value
is nothing to handle nicely after the query executed for post query modifications. Now there is two questions:Entity
struct?sea-orm-cli
(add another clap option) and thesea-orm-codegen
or was there a general decision to not go this way at all?Best regards!
The text was updated successfully, but these errors were encountered: