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

[cli] Add `#[serde(skip_serializing)]` and `#[serde(skip_deserializing)]` to hidden collumns

Open HigherOrderLogic opened this issue 2 years ago • 2 comments

Motivation

Since we don't generate entity for hidden table (which has name starts with underscore) by default so it'd be good to add #[serde(skip_serializing)] and #[serde(skip_deserializing)] to hidden columns, too.

Proposed Solutions

N/A

Additional Information

N/A

HigherOrderLogic avatar Aug 11 '22 16:08 HigherOrderLogic

Hey @HigherOrderLogic, thanks for proposing this on Discord!

I'll open this for contributions! I second this as long as it's opt-in, i.e. feature is disabled by default and can be choose to enabled by will.

billy1624 avatar Aug 15 '22 09:08 billy1624

You don't need to add both, adding #[serde(skip)] does the same.

Sculas avatar Aug 19 '22 15:08 Sculas