Cloud Spanner V1 Client - Class ReadWrite (1.79.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
Name Description
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
Type Description
int

setReadLockMode

Read lock mode for the transaction.

Parameter
Name Description
var int
Returns
Type Description
$this