Class: Google::Cloud::Spanner::BatchUpdateError

Inherits:
Error
  • Object
show all
Defined in:
lib/google/cloud/spanner/errors.rb

Overview

BatchUpdateError

Includes the cause and the partial result set of row counts from a failed batch DML operation. Contains a cause error that provides service error type and message, and a list with the exact number of rows that were modified for each successful statement before the error.

See Transaction#batch_update.

Instance Attribute Summary collapse

Instance Attribute Details

#row_countsArray<Integer> (readonly)

A list with the exact number of rows that were modified for each successful statement.

Returns:

  • (Array<Integer>)

    the current value of row_counts



84
85
86
# File 'lib/google/cloud/spanner/errors.rb', line 84

def row_counts
  @row_counts
end