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

Add options to persist method to prevent accidental updates or creations #238

Open
dimitribouniol opened this issue Oct 19, 2024 · 0 comments

Comments

@dimitribouniol
Copy link
Member

For instance, only create if does not exist, or only update if does exist. These cases are more rare, but the default behavior should be obvious so folks don't accidentally assume one of those scenarios.

This can be trivial to check within a transaction — if persist returns an object, you know there was a previous value and can in turn fail the transaction.

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

No branches or pull requests

1 participant