Set options on calls to spanner::Client::Commit()
.
More...
#include <google/cloud/spanner/commit_options.h>
Set options on calls to spanner::Client::Commit()
.
- Example
auto commit = client.Commit(
"Albums", {"SingerId", "AlbumId", "MarketingBudget"})
.EmplaceRow(1, 1, 200000)
.EmplaceRow(2, 2, 400000)
.Build()},
Options & set(ValueTypeT< T > v)
spanner_internal::WriteMutationBuilder< spanner_internal::UpdateOp > UpdateMutationBuilder
A helper class to construct "update" mutations.
Definition: mutations.h:249
std::vector< Mutation > Mutations
An ordered sequence of mutations to pass to Client::Commit() or return from the Client::Commit() muta...
Definition: mutations.h:99
◆ CommitOptions() [1/2]
google::cloud::spanner::CommitOptions::CommitOptions |
( |
| ) |
|
|
default |
Default options: no stats.
◆ CommitOptions() [2/2]
google::cloud::spanner::CommitOptions::CommitOptions |
( |
Options const & |
opts | ) |
|
|
explicit |
◆ operator Options()
google::cloud::spanner::CommitOptions::operator Options |
( |
| ) |
const |
|
explicit |
◆ request_priority()
absl::optional< RequestPriority > google::cloud::spanner::CommitOptions::request_priority |
( |
| ) |
const |
|
inline |
◆ return_stats()
bool google::cloud::spanner::CommitOptions::return_stats |
( |
| ) |
const |
|
inline |
◆ set_request_priority()
◆ set_return_stats()
CommitOptions & google::cloud::spanner::CommitOptions::set_return_stats |
( |
bool |
return_stats | ) |
|
|
inline |
◆ set_transaction_tag()
CommitOptions & google::cloud::spanner::CommitOptions::set_transaction_tag |
( |
absl::optional< std::string > |
transaction_tag | ) |
|
|
inline |
◆ transaction_tag()
absl::optional< std::string > const & google::cloud::spanner::CommitOptions::transaction_tag |
( |
| ) |
const |
|
inline |