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

Result.single() throws error if not exactly one record #646

Merged
merged 2 commits into from
Jan 21, 2022

Conversation

robsdedude
Copy link
Member

Also include minor performance improvement for repeated calls of
Result.peek(), .peek(), and .graph().

Depends on neo4j-drivers/testkit#373

Also include minor performance improvement for repeated calls of
`Result.peek()`, `.peek()`, and `.graph()`.
@robsdedude robsdedude merged commit 8e4b9cf into neo4j:5.0 Jan 21, 2022
@robsdedude robsdedude deleted the result-single branch January 21, 2022 11:34
robsdedude added a commit to robsdedude/neo4j-python-driver that referenced this pull request Mar 8, 2022
 * Introduce `Result.fetch(n)`
 * Revert `Result.single()` to be lenient again when not exactly one record is
   left in the stream.
   Partially reverts neo4j#646
 * Add `strict` parameter to `Result.single()` to enable strict checking of the
   number of records in the stream.
@robsdedude robsdedude mentioned this pull request Mar 8, 2022
robsdedude added a commit to robsdedude/neo4j-python-driver that referenced this pull request Mar 8, 2022
 * Introduce `Result.fetch(n)`
 * Revert `Result.single()` to be lenient again when not exactly one record is
   left in the stream.
   Partially reverts neo4j#646
 * Add `strict` parameter to `Result.single()` to enable strict checking of the
   number of records in the stream.
robsdedude added a commit to robsdedude/neo4j-python-driver that referenced this pull request Mar 8, 2022
 * Introduce `Result.fetch(n)`
 * Revert `Result.single()` to be lenient again when not exactly one record is
   left in the stream.
   Partially reverts neo4j#646
 * Add `strict` parameter to `Result.single()` to enable strict checking of the
   number of records in the stream.
robsdedude added a commit that referenced this pull request Mar 9, 2022
* Introduce `Result.fetch(n)`
 * Revert `Result.single()` to be lenient again when not exactly one record is
   left in the stream.
   Partially reverts #646
 * Add `strict` parameter to `Result.single()` to enable strict checking of the
   number of records in the stream.
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