Cloud Spanner V1 Client - Class ReadWrite (1.96.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.

↳ multiplexed_session_previous_transaction_id
string

Optional. Clients should pass the transaction ID of the previous transaction attempt that was aborted if this transaction is being executed on a multiplexed session. This feature is not yet supported and will result in an UNIMPLEMENTED error.

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

getMultiplexedSessionPreviousTransactionId

Optional. Clients should pass the transaction ID of the previous transaction attempt that was aborted if this transaction is being executed on a multiplexed session.

This feature is not yet supported and will result in an UNIMPLEMENTED error.

Returns
Type
Description
string

setMultiplexedSessionPreviousTransactionId

Optional. Clients should pass the transaction ID of the previous transaction attempt that was aborted if this transaction is being executed on a multiplexed session.

This feature is not yet supported and will result in an UNIMPLEMENTED error.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: