Cloud Spanner V1 Client - Class ReadWrite (1.67.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class ReadWrite.

Message type to initiate a read-write transaction. Currently this transaction type has no options.

Generated from protobuf message google.spanner.v1.TransactionOptions.ReadWrite

Namespace

Google \ Cloud \ Spanner \ V1 \ TransactionOptions

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ read_lock_mode int

Read lock mode for the transaction.

getReadLockMode

Read lock mode for the transaction.

Returns
TypeDescription
int

setReadLockMode

Read lock mode for the transaction.

Parameter
NameDescription
var int
Returns
TypeDescription
$this