Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class CommitOptions (2.38.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.38.0keyboard_arrow_down
Example
auto commit = client.Commit(
spanner::Mutations{
spanner::UpdateMutationBuilder(
"Albums", {"SingerId", "AlbumId", "MarketingBudget"})
.EmplaceRow(1, 1, 200000)
.EmplaceRow(2, 2, 400000)
.Build()},
google::cloud::Options{}.set<spanner::CommitReturnStatsOption>(true));
Constructors
CommitOptions()
Default options: no stats.
CommitOptions(Options const &)
Parameter
Name
Description
opts
Options const &
Operators
operator Options() const
Functions
set_return_stats(bool)
Parameter
Name
Description
return_stats
bool
Returns
Type
Description
CommitOptions &
return_stats() const
Returns
Type
Description
bool
set_request_priority(absl::optional< RequestPriority >)
Parameter
Name
Description
request_priority
absl::optional< RequestPriority >
Returns
Type
Description
CommitOptions &
request_priority() const
Returns
Type
Description
absl::optional< RequestPriority >
set_transaction_tag(absl::optional< std::string >)
Parameter
Name
Description
transaction_tag
absl::optional< std::string >
Returns
Type
Description
CommitOptions &
transaction_tag() const
Returns
Type
Description
absl::optional< std::string > const &
set_max_commit_delay(absl::optional< std::chrono::milliseconds >)
Parameter
Name
Description
max_commit_delay
absl::optional< std::chrono::milliseconds >
Returns
Type
Description
CommitOptions &
max_commit_delay() const
Returns
Type
Description
absl::optional< std::chrono::milliseconds > const &
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[],[]]