kurtbuilds / ormlite

An ORM in Rust for developers that love SQL.
https://crates.io/crates/ormlite
MIT License
216 stars 11 forks source link

Add ability to ignore fields #12

Closed abdulrahman1s closed 1 year ago

abdulrahman1s commented 2 years ago

#[ormlite(skip)] macro would be great!

kurtbuilds commented 2 years ago

I can imagine there’s use for this. The field would have to have a Default value, otherwise it couldn’t get populated.

Can you motivate this with your use case?

heroin-moose commented 2 years ago

Having something in a struct that isn't stored in a database, for example. Like a runtime state.

heroin-moose commented 2 years ago

Or if you're building a composite object from different tables.

kurtbuilds commented 1 year ago

This is now implemented on master, will be cut on the next release.