Cloud Spanner API - Class Google::Cloud::Spanner::BatchWriteResults (v2.23.0)

Reference documentation and code samples for the Cloud Spanner API class Google::Cloud::Spanner::BatchWriteResults.

Results of a batch write.

This is a stream of BatchResult objects, each of which represents a set of mutation groups applied together.

Use the Ruby Enumerable module to iterate over the results.

Inherits

  • Object

Includes

  • Enumerable

Methods

#each

def each(&block)

Iterate over the results.

#error?

def error?() -> ::Boolean

Whether at least one mutation group encountered an error.

Returns
  • (::Boolean)

#ok?

def ok?() -> ::Boolean

Whether all mutation groups were successful.

Returns
  • (::Boolean)

#successful_indexes

def successful_indexes() -> ::Array<::Integer>

A list of the indexes of successful mutation groups.

Returns
  • (::Array<::Integer>)