Skip to content

feat: add for_key_share ("FOR KEY SHARE") lock mode for postgres#8879

Merged
pleerock merged 1 commit intotypeorm:masterfrom
urossmolnik:uross/add-for-key-share-lock-mode
Apr 12, 2022
Merged

feat: add for_key_share ("FOR KEY SHARE") lock mode for postgres#8879
pleerock merged 1 commit intotypeorm:masterfrom
urossmolnik:uross/add-for-key-share-lock-mode

Conversation

@urossmolnik
Copy link
Copy Markdown
Contributor

Description of change

Adds support for new lock mode for_key_share - generating FOR KEY SHARE lock.
Lock applies only to driver type postgres. Otherwise LockNotSupportedOnGivenDriverError error is thrown.

Closes: #8878

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run format to apply prettier formatting
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #8878
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

…iver

Adds support for new lock mode `for_key_share` - generating FOR KEY SHARE lock. Postgres specific.

Closes: typeorm#8878
@pleerock pleerock merged commit 4687be8 into typeorm:master Apr 12, 2022
@pleerock
Copy link
Copy Markdown
Member

Thank you for contribution! 🎉

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add support for FOR KEY SHARE lock mode

2 participants