Replies: 1 comment
-
|
It reads the DB schema mainly to generate columns/types/relations, but comments from So nothing is wrong with your command. This is probably just not supported yet. Would be nice to have an option like: sea-orm-cli generate entity \
-u mysql://root:root@localhost:3306/aigc \
-o entity/src \
--with-column-commentswhich would generate something like: /// MySQL column comment here
#[sea_orm(column_name = "field_name")]
pub field_name: String,For now the workaround is to add the comments manually after generation, or use a custom script/template if you regenerate entities often. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
sea-orm-cli generate entity -u mysql://root:root@localhost:3306/aigc -o entity/src --lib --with-serde both --date-time-crate time --model-extra-derives "Default" --expanded-formatBeta Was this translation helpful? Give feedback.
All reactions