Class CommitOptions (2.26.0)
Stay organized with collections
Save and categorize content based on your preferences.
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 2024-08-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-08-10 UTC.",
"state": ""
}