The KeyBound
class is a regular type that represents an open or closed endpoint for a range of keys.
A range of keys is defined by a starting KeyBound
and an ending KeyBound
, and it logically includes all intermediate keys, optionally including/excluding the bounds.
KeyBound
s can be "open", meaning the matching row will be excluded from the results, or "closed" meaning the matching row will be included. KeyBound
instances should be created with the MakeKeyBoundOpen()
or MakeKeyBoundClosed()
factory functions.
- Example
-
- Example
void DeleteData(google::cloud::spanner::Client client) {
namespace spanner = ::google::cloud::spanner;
"Albums", spanner::KeySet()
.Build();
auto delete_singers =
.Build();
auto commit_result =
if (!commit_result) {
throw std::runtime_error(commit_result.status().message());
}
std::cout << "Delete was successful [spanner_delete_data]\n";
}
Definition at line 69 of file keys.h.