Google Cloud Spanner v1 API - Enum TransactionOptions.Types.ReadWrite.Types.ReadLockMode (5.13.0-beta06)
Stay organized with collections
Save and categorize content based on your preferences.
Lock acquisition behavior depends on the isolation level in use. In
both
[SERIALIZABLE][google.spanner.v1.TransactionOptions.IsolationLevel.SERIALIZABLE]
and
[REPEATABLE_READ][google.spanner.v1.TransactionOptions.IsolationLevel.REPEATABLE_READ]
isolation, reads and writes do not acquire locks during transaction
statement execution.
See
Concurrency
control for
details on how the guarantees of each isolation level are provided at
commit time.
Pessimistic
Pessimistic lock mode.
Lock acquisition behavior depends on the isolation level in use. In
[SERIALIZABLE][google.spanner.v1.TransactionOptions.IsolationLevel.SERIALIZABLE]
isolation, reads and writes acquire necessary locks during transaction
statement execution. In
[REPEATABLE_READ][google.spanner.v1.TransactionOptions.IsolationLevel.REPEATABLE_READ]
isolation, reads that explicitly request to be locked and writes
acquire locks.
See
Concurrency
control for
details on the types of locks acquired at each transaction step.
Unspecified
Default value.
If isolation level is
[SERIALIZABLE][google.spanner.v1.TransactionOptions.IsolationLevel.SERIALIZABLE],
locking semantics default to PESSIMISTIC.
If isolation level is
[REPEATABLE_READ][google.spanner.v1.TransactionOptions.IsolationLevel.REPEATABLE_READ],
locking semantics default to OPTIMISTIC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-11 UTC."],[],[]]