Google Cloud Spanner v1 API - Enum TransactionOptions.Types.ReadWrite.Types.ReadLockMode (5.0.0-beta04)

public enum TransactionOptions.Types.ReadWrite.Types.ReadLockMode

Reference documentation and code samples for the Google Cloud Spanner v1 API enum TransactionOptions.Types.ReadWrite.Types.ReadLockMode.

ReadLockMode is used to set the read lock mode for read-write transactions.

Namespace

Google.Cloud.Spanner.V1

Assembly

Google.Cloud.Spanner.V1.dll

Fields

Name Description
Optimistic

Optimistic lock mode.

Locks for reads within the transaction are not acquired on read. Instead the locks are acquired on a commit to validate that read/queried data has not changed since the transaction started.

Pessimistic

Pessimistic lock mode.

Read locks are acquired immediately on read.

Unspecified

Default value.

If the value is not specified, the pessimistic read lock is used.