- Notifications
You must be signed in to change notification settings - Fork516
feat(derive): add#[postgres(allow_mismatch)]
#1026
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
3d92ed1
toe71898f
CompareHey@sfackler could you please review this PR? |
if #allow_mismatch{ | ||
returntrue; | ||
} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I'd rather just not generate the match below at all if allow_mismatch is set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
true, fixed!
e71898f
tof5d5965
Comparef5d5965
to258fe68
Compare
Uh oh!
There was an error while loading.Please reload this page.
As discussed on#1023, this PR implements an override/attribute that allows mismatching Rust and Postgres enums.
Example