Send feedback
Class CommitOptions (2.32.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.32.0 keyboard_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 &
Send feedback
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 2024-12-06 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-06 UTC."],[],[]]