Passing options when generating entities (cargo loco db entities)
#1461
Answered
by
kaplanelad
SteelAlloy
asked this question in
Q&A
-
|
Hi, I'm migrating my axum + seaorm project to loco. In my project, I was using the following command to generate entities from the database schema : sea generate entity \
--date-time-crate 'time' \
--enum-extra-derives 'Copy,strum::EnumString' \
--enum-extra-attributes 'strum(ascii_case_insensitive)'I can't find where to put these options, either in the CLI options ( database:
# suggestion
entities_options: ...Is this even possible with loco ? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
kaplanelad
May 28, 2025
Replies: 1 comment 1 reply
-
|
Hey @SteelAlloy, It will be included in the next release. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SteelAlloy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @SteelAlloy,
The feature has been implemented and merged into master.
You can check out the PR here: #1442
It will be included in the next release.