Skip to content

Allow optimistic locking #297

@Mairu

Description

@Mairu

Sequelize with version: true option for models does internal optimistic locking. But if you want to provide your own version, to do "manual" optimistic locking from an api level you have to call instance.setDataValue('version', versionFromInput) before saving.

Would it be ok to add a optimisticLocking option to the service which does that?

I am willing to provide a pull request if it will be merged.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions