sea-orm
sea-orm copied to clipboard
Struct / enum derive PartialEq should also derive Eq
PR Info
- Closes https://github.com/SeaQL/sea-orm/issues/965
Adds
[codegen] Struct / enum derive PartialEq should also derive Eq
Changes
Add a function to check if f32/f64 exists on the column. If not, add Eq on the derived part.
Testing:
- update the previous tests to match the new mechanism.
- Add two tests to if Eq is not generated when f32/f64 in the column.
I merged the change~ Thanks!
Awesome
It would be very useful to have this as soon as possible.
Every time we generate with 0.9.3 we have to undo the changes (I cannot disable linting in CI).
Can we release 0.9.4 with this only?
Can do
Can do
? Are you going to?