Skip to content
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

treewide: get rid of (most) uses of QueryResult::rows #955

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

wprzytula
Copy link
Collaborator

@wprzytula wprzytula commented Mar 12, 2024

Part of #462.

This PR serves two purposes:

  • Modernizes the existing examples and internal uses of QueryResult in the driver. We have had helpers such as rows_typed etc. for a long time and they are supposed to offer superior experience, although many of our tests still use QueryResult::rows directly.
  • Prepares for the iterator-based deserialization refactor. The representation of QueryResult will change and the rows field will not be available anymore - instead, the helper methods very similar to the current ones will be mandatory.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • [ ] I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • [ ] I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • [ ] I added appropriate Fixes: annotations to PR description.

@wprzytula wprzytula requested review from Lorak-mmk and muzarski March 12, 2024 15:15
Copy link

github-actions bot commented Mar 12, 2024

cargo semver-checks found no API-breaking changes in this PR! 🎉🥳
Checked commit: 9a7fceb

@wprzytula wprzytula self-assigned this Mar 13, 2024
@wprzytula wprzytula force-pushed the dont-use-raw-rows branch 2 times, most recently from a34c5a1 to 9ee0ee1 Compare March 13, 2024 18:18
docs/source/queries/simple.md Show resolved Hide resolved
examples/basic.rs Outdated Show resolved Hide resolved
examples/compare-tokens.rs Show resolved Hide resolved
examples/cql-time-types.rs Show resolved Hide resolved
examples/cql-time-types.rs Show resolved Hide resolved
examples/cql-time-types.rs Show resolved Hide resolved
examples/schema_agreement.rs Show resolved Hide resolved
examples/select-paging.rs Show resolved Hide resolved
examples/tls.rs Show resolved Hide resolved
scylla/src/transport/connection.rs Show resolved Hide resolved
This commit serves two purposes:

- Modernizes the existing examples and internal uses of QueryResult in
  the driver. We have had helpers such as rows_typed etc. for a long
  time and they are supposed to offer superior experience, although many
  of our tests still use QueryResult::rows directly.
- Prepares for the iterator-based deserialization refactor. The
  representation of QueryResult will change and the rows field will not
  be available anymore - instead, the helper methods very similar to the
  current ones will be mandatory.

Co-authored-by: Wojciech Przytuła <[email protected]>
@Lorak-mmk Lorak-mmk merged commit 7b3e73e into scylladb:main Mar 14, 2024
12 checks passed
@wprzytula wprzytula deleted the dont-use-raw-rows branch March 14, 2024 16:45
@Lorak-mmk Lorak-mmk mentioned this pull request May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants