Class: Google::Spanner::V1::CommitRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb

Overview

The request for Commit.

Instance Attribute Summary collapse

Instance Attribute Details

#mutationsArray<Google::Spanner::V1::Mutation>

Returns The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.

Returns:

  • (Array<Google::Spanner::V1::Mutation>)

    The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.



413
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb', line 413

class CommitRequest; end

#sessionString

Returns Required. The session in which the transaction to be committed is running.

Returns:

  • (String)

    Required. The session in which the transaction to be committed is running.



413
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb', line 413

class CommitRequest; end

#single_use_transactionGoogle::Spanner::V1::TransactionOptions

Returns 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.

Returns:

  • (Google::Spanner::V1::TransactionOptions)

    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.



413
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb', line 413

class CommitRequest; end

#transaction_idString

Returns Commit a previously-started transaction.

Returns:

  • (String)

    Commit a previously-started transaction.



413
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/spanner.rb', line 413

class CommitRequest; end