-
Notifications
You must be signed in to change notification settings - Fork 14
docs: add snippets for methods and classes in keys.h #1451
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See below, but if you feel I am wrong just ping me over IM.
Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @devbww, @devjgm, @mr-salty, and @scotthart)
google/cloud/spanner/samples/samples.cc, line 1055 at r1 (raw file):
auto delete_singers = spanner::DeleteMutationBuilder( "Singers", spanner::KeySet().AddRange(spanner::MakeKeyBoundOpen(0),
I was wondering about consistency with other languages (this is a sample in the cloud site docs), but they are hilariously inconsistent.
https://cloud.google.com/spanner/docs/modify-mutation-api#deleting_rows_in_a_table
Nevertheless, C++ would be the only language using an open range to delete the rows, that seems odd.
Probably best to create another example.
google/cloud/spanner/samples/samples.cc, line 2435 at r1 (raw file):
namespace spanner = ::google::cloud::spanner; RemoteConnectionFake remote_connection; //! [key-set-builder]
nit: I think these tags could go in the same line too, as above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @coryan, @devbww, @devjgm, and @mr-salty)
google/cloud/spanner/samples/samples.cc, line 1055 at r1 (raw file):
Previously, coryan (Carlos O'Ryan) wrote…
I was wondering about consistency with other languages (this is a sample in the cloud site docs), but they are hilariously inconsistent.
https://cloud.google.com/spanner/docs/modify-mutation-api#deleting_rows_in_a_table
Nevertheless, C++ would be the only language using an open range to delete the rows, that seems odd.
Probably best to create another example.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @devbww, @devjgm, and @mr-salty)
Codecov Report
@@ Coverage Diff @@
## master #1451 +/- ##
==========================================
+ Coverage 95.56% 95.58% +0.02%
==========================================
Files 191 190 -1
Lines 15794 15806 +12
==========================================
+ Hits 15093 15108 +15
+ Misses 701 698 -3
Continue to review full report at Codecov.
|
…le-cloud-cpp-spanner#1451) * docs: add snippets for methods and classes in keys.h
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)