Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate building objects from inserting them into stores #1334

Merged
merged 3 commits into from
Nov 9, 2022
Merged

Conversation

hannobraun
Copy link
Owner

Changes all build methods to just build the object without inserting it. Adds a new Insert trait to make inserting the objects after building them convenient.

From one of the commit messages:

This provides more flexibility, making it possible to use the partial object and builder infrastructure, without automatically opting into validation. This can be useful, especially in unit tests.

Honestly, I don't understand how that worked in the first place. Must be
some kind of iterator magic.
This provides more flexibility, making it possible to use the partial
object and builder infrastructure, without automatically opting into
validation. This can be useful, especially in unit tests.
@hannobraun hannobraun enabled auto-merge November 9, 2022 21:34
@hannobraun hannobraun merged commit 84d5c59 into main Nov 9, 2022
@hannobraun hannobraun deleted the insert branch November 9, 2022 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant