sea-orm icon indicating copy to clipboard operation
sea-orm copied to clipboard

Support `--column-extra-derives`

Open karolgorecki opened this issue 1 year ago • 6 comments

PR Info

Doesn't close any issue. Functionally related to, but not overlapping with: https://github.com/SeaQL/sea-orm/pull/1934 & https://github.com/SeaQL/sea-orm/pull/1952

New Features

  • [x] New --column-extra-derives CLI option allows for adding custom derives to column enum.

Bug Fixes

None.

Breaking Changes

Fully backward compatible for the end user.

Changes

None.

karolgorecki avatar May 01 '24 23:05 karolgorecki

Do let me know if you need help!

billy1624 avatar May 02 '24 07:05 billy1624

Hi @billy1624 for the compact entity format there is no column enum so it's passed but not used. We could also not pass it but then will have to change the assert_serde_variant_results

karolgorecki avatar May 02 '24 07:05 karolgorecki

Hi @billy1624 is it ok or I should not pass it + update the assert_serde_variant_results?

karolgorecki avatar May 07 '24 09:05 karolgorecki

Hi @billy1624 can you check again the PR?

karolgorecki avatar Jun 08 '24 09:06 karolgorecki

Any plans on adding this in the near future? Would be nice to have instead of manually writing PartialEq impl's for the columns enum.

funlennysub avatar Aug 19 '24 20:08 funlennysub

@billy1624 ?

karolgorecki avatar Aug 20 '24 16:08 karolgorecki