Skip to content

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

Description

@dimitribouniol

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions