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

Simplify result summary api #222

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

knutwalker
Copy link
Collaborator

The result summary can now only be returned from finish, which also consumes the stream.
The next_or_summary and items methods are removed.
This also simplifies the API for finish, the summary no longer has to be returned as an option.
Before it could have already been returned by a call to next_or_summary, which would result in a None being returned from finish.
Having the API like that is also closer to APIs from the product drivers

The result summary can now only be returned from `finish`, which also consumes the stream.
The next_or_summary and *_items_* methods are removed.
This also simplifies the API for finish, the summary no longer has to be returned as an option.
Before it could have already been returned by a call to next_or_summary, which would result in a None being returned from finish.
Having the API like that is also closer to APIs from the product drivers
@knutwalker knutwalker force-pushed the simplify-result-summary-api branch from bcfa321 to eac007c Compare February 12, 2025 09:46
@knutwalker knutwalker merged commit c2b733d into neo4j-labs:main Feb 12, 2025
11 checks passed
@knutwalker knutwalker deleted the simplify-result-summary-api branch February 12, 2025 09:52
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.

1 participant