Skip to content

Simplify result summary api#222

Merged
knutwalker merged 2 commits into
neo4j-labs:mainfrom
knutwalker:simplify-result-summary-api
Feb 12, 2025
Merged

Simplify result summary api#222
knutwalker merged 2 commits into
neo4j-labs:mainfrom
knutwalker:simplify-result-summary-api

Conversation

@knutwalker
Copy link
Copy Markdown
Contributor

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
@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