CodableDatastore icon indicating copy to clipboard operation
CodableDatastore copied to clipboard

Add options to persist method to prevent accidental updates or creations

Open dimitribouniol opened this issue 1 year ago • 0 comments

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.

dimitribouniol avatar Oct 19 '24 10:10 dimitribouniol