sea-orm/issues/630/README.md
Billy Chan 840f8f6148
DeriveEntityModel macros override column name (#695)
* Override column name with the name of model field in `DeriveEntityModel` macros [issues]

* Fixup: trim prefix and tailing underscore

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-05-09 22:08:59 +08:00

7 lines
317 B
Markdown

# sea_orm_underscore_fields
A minimal repository showing an issue with SeaORM.
Connects to the database with `env!()`, so make sure to set `DATABASE_URL` when compiling.
The file `src/entity/underscores_workaround.rs` shows the workaround to get the names to query correctly, and what happens if it's not included.