Class CommitRequest
The request for Commit.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Spanner.v1.Data
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class CommitRequest : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Mutations
The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
Declaration
[JsonProperty("mutations")]
public virtual IList<Mutation> Mutations { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IList<Mutation> |
RequestOptions
Common options for this request.
Declaration
[JsonProperty("requestOptions")]
public virtual RequestOptions RequestOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| RequestOptions |
ReturnCommitStats
If true, then statistics related to the transaction will be included in the CommitResponse. Default value
is false.
Declaration
[JsonProperty("returnCommitStats")]
public virtual bool? ReturnCommitStats { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
SingleUseTransaction
Execute mutations in a temporary transaction. Note that unlike commit of a previously-started transaction,
commit with a temporary transaction is non-idempotent. That is, if the CommitRequest is sent to Cloud
Spanner more than once (for instance, due to retries in the application, or in the transport library), it is
possible that the mutations are executed more than once. If this is undesirable, use BeginTransaction and
Commit instead.
Declaration
[JsonProperty("singleUseTransaction")]
public virtual TransactionOptions SingleUseTransaction { get; set; }
Property Value
| Type | Description |
|---|---|
| TransactionOptions |
TransactionId
Commit a previously-started transaction.
Declaration
[JsonProperty("transactionId")]
public virtual string TransactionId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |