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 \ TransactionOptionsMethods
__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. |
getReadLockMode
Read lock mode for the transaction.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ReadLockMode. |
setReadLockMode
Read lock mode for the transaction.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ReadLockMode. |
| 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.
| 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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|