We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 support for FOR KEY SHARE lock mode - postgres only.
FOR KEY SHARE
In rare occasions FOR KEY SHARE lock is needed on row. Currently TypeORM does not support this kind of lock.
New lockMode: for_key_share. Lock would be applied only for driver type postgres. Otherwise LockNotSupportedOnGivenDriverError error would be thrown.
lockMode
for_key_share
postgres
LockNotSupportedOnGivenDriverError
n/a
Postgres documentation at https://www.postgresql.org/docs/12/explicit-locking.html
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
react-native
sap
sqlite
sqlite-abstract
sqljs
sqlserver
Yes.
The text was updated successfully, but these errors were encountered:
feat: add for_key_share ("FOR KEY SHARE") lock mode for postgres dr…
0aeca15
…iver Adds support for new lock mode `for_key_share` - generating FOR KEY SHARE lock. Postgres specific. Closes: typeorm#8878
9d78aff
3f5d283
4687be8
…iver (#8879) Adds support for new lock mode `for_key_share` - generating FOR KEY SHARE lock. Postgres specific. Closes: #8878
Successfully merging a pull request may close this issue.
Feature Description
Add support for
FOR KEY SHARE
lock mode - postgres only.The Problem
In rare occasions
FOR KEY SHARE
lock is needed on row. Currently TypeORM does not support this kind of lock.The Solution
New
lockMode
:for_key_share
. Lock would be applied only for driver typepostgres
. OtherwiseLockNotSupportedOnGivenDriverError
error would be thrown.Considered Alternatives
n/a
Additional Context
Postgres documentation at https://www.postgresql.org/docs/12/explicit-locking.html
Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
Yes.
The text was updated successfully, but these errors were encountered: