View Source GoogleApi.Spanner.V1.Model.CommitRequest (google_api_spanner v0.39.0)

The request for Commit.

Attributes

  • maxCommitDelay (type: String.t, default: nil) - Optional. The amount of latency this request is willing to incur in order to improve throughput. If this field is not set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a batching delay value between 0 and 500 ms.
  • mutations (type: list(GoogleApi.Spanner.V1.Model.Mutation.t), default: nil) - The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.
  • requestOptions (type: GoogleApi.Spanner.V1.Model.RequestOptions.t, default: nil) - Common options for this request.
  • returnCommitStats (type: boolean(), default: nil) - If true, then statistics related to the transaction will be included in the CommitResponse. Default value is false.
  • singleUseTransaction (type: GoogleApi.Spanner.V1.Model.TransactionOptions.t, default: nil) - 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.
  • transactionId (type: String.t, default: nil) - Commit a previously-started transaction.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Spanner.V1.Model.CommitRequest{
  maxCommitDelay: String.t() | nil,
  mutations: [GoogleApi.Spanner.V1.Model.Mutation.t()] | nil,
  requestOptions: GoogleApi.Spanner.V1.Model.RequestOptions.t() | nil,
  returnCommitStats: boolean() | nil,
  singleUseTransaction: GoogleApi.Spanner.V1.Model.TransactionOptions.t() | nil,
  transactionId: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.