Make Excluded struct public for generic upsert queries
#4913
LucaCappelletti94
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Backend
PostgreSQL, MySQL, SQLite, Others
What do you want to add to diesel?
At this time,
Excludedis de-facto a private struct, and therefore while theexcludedmethod is public, it is not really possible to use it in blanket implementations.Implementation notes
Just re-export
Excluded, or, alternatively, create a traitExcludedColumnfor columns which has an associated typeExcluded, which would have the same functionality as having theExcludedstruct.Additional details
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions