Description
sea-orm-cli generate entity panics with "not implemented" when processing a Decimal column using the --entity-format expanded option.
Steps to Reproduce
- Run the following command (using a Neon Postgres database), replace database url with actual database url:
sea-orm-cli generate entity \
-o database/entity/src/ \
-u "postgresql://..." \
--entity-format expanded \
--max-connections 1
- The command processes several tables successfully, then fails on the
exercises table.
Expected Behavior
The CLI should successfully generate entity files for all tables, including those with Decimal columns.
Actual Behavior
Generation fails with a panic:
thread 'main' (368462) panicked at /home/.../sea-orm-codegen-2.0.0-rc.41/src/entity/column.rs:209:22:
not implemented
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)
It fails specifically while processing this column in the exercises table:
pass_mark: Option<Decimal>
Reproduces How Often
Always (on this schema).
Workarounds
- Use
--entity-format dense instead of expanded (recommended for SeaORM 2.0 anyway).
- Manually write entities using the new
#[sea_orm::model] macro.
Versions
sea-orm-cli: 2.0.0-rc.41
sea-orm-codegen: 2.0.0-rc.41
- Database: PostgreSQL (Neon serverless)
- OS: Linux
Description
sea-orm-cli generate entitypanics with"not implemented"when processing aDecimalcolumn using the--entity-format expandedoption.Steps to Reproduce
sea-orm-cli generate entity \ -o database/entity/src/ \ -u "postgresql://..." \ --entity-format expanded \ --max-connections 1exercisestable.Expected Behavior
The CLI should successfully generate entity files for all tables, including those with
Decimalcolumns.Actual Behavior
Generation fails with a panic:
It fails specifically while processing this column in the
exercisestable:pass_mark:Option<Decimal>Reproduces How Often
Always (on this schema).
Workarounds
--entity-format denseinstead ofexpanded(recommended for SeaORM 2.0 anyway).#[sea_orm::model]macro.Versions
sea-orm-cli:2.0.0-rc.41sea-orm-codegen:2.0.0-rc.41