You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently unable to add custom derives like clickhouse::Row to generated database entities in Loco because the --model-extra-derives option from SeaORM's CLI is not exposed through Loco's db entities command.
Describe the solution you'd like
Add support for SeaORM's --model-extra-derives option in Loco's db entities command. This would allow users to specify additional derive macros for the generated model structs. For example:
loco db entities --model-extra-derives "clickhouse::Row"
Describe alternatives you've considered
Manually adding derives to generated files (not maintainable, gets overwritten on regeneration)
The text was updated successfully, but these errors were encountered:
cargo loco db entities
sea-orm-cli generate entity --with-serde both --model-extra-derives 'sea_orm_crud_macros::SeaOrmCrud' --output-dir src/models/_entities --database-url postgres://postgres:1234qwer@localhost:5432/loco
sed -i 's/impl ActiveModelBehavior for ActiveModel {}/\/\/impl ActiveModelBehavior for ActiveModel {}/g' src/models/_entities/*
Feature Request
Is your feature request related to a problem? Please describe.
Currently unable to add custom derives like
clickhouse::Row
to generated database entities in Loco because the--model-extra-derives
option from SeaORM's CLI is not exposed through Loco'sdb entities
command.Describe the solution you'd like
Add support for SeaORM's
--model-extra-derives
option in Loco'sdb entities
command. This would allow users to specify additional derive macros for the generated model structs. For example:loco db entities --model-extra-derives "clickhouse::Row"
Describe alternatives you've considered
Manually adding derives to generated files (not maintainable, gets overwritten on regeneration)
The text was updated successfully, but these errors were encountered: