Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
|
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< Stats > | stats |
The stats for each successfully executed SqlStatement . More... | |
Status | status |
Either OK or the error Status of the SqlStatement that failed. More... | |
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.
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 google::cloud::spanner::BatchDmlResult::status |
Either OK or the error Status of the SqlStatement
that failed.