Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
Loading...
Searching...
No Matches
Classes | Public Attributes | List of all members
google::cloud::spanner::BatchDmlResult Struct Reference

The result of executing a batch of DML statements. More...

#include <google/cloud/spanner/batch_dml_result.h>

Classes

struct  Stats
 The stats for each successfully executed SqlStatement. More...
 

Public Attributes

std::vector< Statsstats
 The stats for each successfully executed SqlStatement. More...
 
Status status
 Either OK or the error Status of the SqlStatement that failed. More...
 

Detailed Description

The result of executing a batch of DML statements.

Batch DML statements are executed in order using the Client::ExecuteBatchDml method, which accepts a vector of SqlStatement objects. The returned BatchDmlResult will contain one entry in BatchDmlResult::stats for each SqlStatement that was executed successfully. If execution of any SqlStatement fails, all subsequent statements will not be run and BatchDmlResult::status will contain information about the failed statement.

Member Data Documentation

◆ stats

std::vector<Stats> google::cloud::spanner::BatchDmlResult::stats

The stats for each successfully executed SqlStatement.

The order of the SqlStatements matches the order of the Stats in this vector.

◆ status

Status google::cloud::spanner::BatchDmlResult::status

Either OK or the error Status of the SqlStatement that failed.