Cloud Spanner API - Class Google::Cloud::Spanner::BatchUpdateError (v2.20.0)

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

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.

Inherits

  • Google::Cloud::Error

Methods

#row_counts

def row_counts() -> Array<Integer>

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

Returns
  • (Array<Integer>) — the current value of row_counts