-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(spanner): make ResultSourceInterface
public
#11636
feat(spanner): make ResultSourceInterface
public
#11636
Conversation
This class is needed to mock some operations in `spanner::Client`. Application developers may need to refer to its functions, and it needs to be documented so people know what the mock should do.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #11636 +/- ##
=======================================
Coverage ? 93.78%
=======================================
Files ? 1824
Lines ? 164394
Branches ? 0
=======================================
Hits ? 154179
Misses ? 10215
Partials ? 0
☔ View full report in Codecov by Sentry. |
google/cloud/spanner/results.h
Outdated
* @return if the stream is interrupted due to a failure the | ||
* `StatusOr<spanner::Row>` contains the error. If the |
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.
"If the ..."?
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.
Fixed
google/cloud/spanner/results.h
Outdated
virtual absl::optional<google::spanner::v1::ResultSetMetadata> Metadata() = 0; | ||
|
||
/** | ||
* Returns statiscs about the result set, such as the number of rows returned, |
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.
s/statiscs/statistics/
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.
Fixed
google/cloud/spanner/results.h
Outdated
virtual absl::optional<google::spanner::v1::ResultSetMetadata> Metadata() = 0; | ||
|
||
/** | ||
* Returns statiscs about the result set, such as the number of rows returned, |
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.
s/rows returned/rows/ perhaps?
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.
Done
google/cloud/spanner/results.h
Outdated
|
||
/** | ||
* Returns statiscs about the result set, such as the number of rows returned, | ||
* or the query plan used to compute the results. |
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.
s/or/and/?
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.
Done
This class is needed to mock some operations in
spanner::Client
. Application developers may need to refer to its functions, and it needs to be documented so people know what the mock should do.Motivated by #11430
This change is