Replies: 2 comments
-
Hey @vincascm, welcome! I'm translating your comment with Google Translate, please do let me know if the translation is inaccurate.
Reply:
Hmmm... okay so you want to organize the code in a different way. Could you clarify what will be stored in
Yeah, this could be optional but this is just one file, so I guess user can delete it manually if they don't want it. We could add an option to skip the generation of it if you really want to.
We would add an option for it as well.
This has to be carefully consider. The part of code responsible of it: sea-orm/sea-orm-codegen/src/entity/column.rs Lines 25 to 55 in cc49049 |
Beta Was this translation helpful? Give feedback.
-
@billy1624 thanks your reply,
|
Beta Was this translation helpful? Give feedback.
-
i use
sea-orm-cli
to generatemodel
,and the work flow like update database schema, sea-orm-cli generate, web apimod
use it.with this work flow, generated code is immutable,but may be add more options to fit it.
my English is too poor, forgive me for using Chinese.
发现的问题有几个:
src/model
,在这个目录里,我会有一个impls
目录,用来放Model
额外的implement,所以需要model中mod.rs的生成是可选的Beta Was this translation helpful? Give feedback.
All reactions