Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

docs: add snippets for methods and classes in keys.h #1451

Merged
merged 3 commits into from
Mar 26, 2020

Conversation

scotthart
Copy link
Member

@scotthart scotthart commented Mar 26, 2020

This change is Reviewable

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 26, 2020
Copy link
Contributor

@coryan coryan left a 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?

Copy link
Member Author

@scotthart scotthart left a 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.

Copy link
Contributor

@coryan coryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @devbww, @devjgm, and @mr-salty)

@codecov
Copy link

codecov bot commented Mar 26, 2020

Codecov Report

Merging #1451 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
google/cloud/spanner/keys.h 100% <ø> (ø) ⬆️
google/cloud/spanner/samples/samples.cc 90.01% <100%> (ø) ⬆️
google/cloud/spanner/internal/log_wrapper.h 75% <0%> (-9.62%) ⬇️
...ud/spanner/integration_tests/client_stress_test.cc 80.55% <0%> (-1.86%) ⬇️
google/cloud/spanner/client.cc 96.91% <0%> (-0.62%) ⬇️
...on_tests/rpc_failure_threshold_integration_test.cc 85.55% <0%> (-0.16%) ⬇️
google/cloud/spanner/internal/session_pool.cc 92.24% <0%> (-0.07%) ⬇️
google/cloud/spanner/internal/session.h 100% <0%> (ø) ⬆️
google/cloud/spanner/internal/spanner_stub.cc 77.41% <0%> (ø) ⬆️
...oogle/cloud/spanner/internal/database_admin_stub.h
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7695eb...a0dee24. Read the comment docs.

@scotthart scotthart merged commit aabb227 into googleapis:master Mar 26, 2020
devjgm pushed a commit to devjgm/google-cloud-cpp that referenced this pull request May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants