[management] make locking strength clause optional (#3844)

This commit is contained in:
Pascal Fischer
2025-05-19 16:42:47 +02:00
committed by GitHub
parent cbcdad7814
commit 207fa059d2
2 changed files with 326 additions and 54 deletions

View File

@@ -44,6 +44,7 @@ const (
LockingStrengthShare LockingStrength = "SHARE" // Allows reading but prevents changes by other transactions.
LockingStrengthNoKeyUpdate LockingStrength = "NO KEY UPDATE" // Similar to UPDATE but allows changes to related rows.
LockingStrengthKeyShare LockingStrength = "KEY SHARE" // Protects against changes to primary/unique keys but allows other updates.
LockingStrengthNone LockingStrength = "NONE" // No locking, allowing all transactions to proceed without restrictions.
)
type Store interface {