Skip to content

Introduce Driver.execute_query #531

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

Merged
merged 32 commits into from
Jan 23, 2023

Conversation

bigmontz
Copy link
Contributor

No description provided.

@bigmontz bigmontz marked this pull request as ready for review October 12, 2022 15:19
Copy link
Contributor

@fbiville fbiville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comprehensive suite of tests, nice!


if bookmark_manager is None:
config["bookmarkManagerId"] = -1
elif bookmark_manager is not Ellipsis:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's Ellipsis? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the ...

C: BEGIN {"[db]": "*"}
S: SUCCESS {}
{{
C: RUN "CREATE (p:Person{name:$name}) RETURN p.name AS name" { "name":"the person" } {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make the query simpler? does it need to be that long? (applies to other places too)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this way for making it easier to figure out what's going on.

self.assertEqual(eager_result.keys, ["n"])
self.assertEqual(eager_result.records, [
types.Record(values=[types.CypherInt(1)])])
self.assertIsNotNone(eager_result.summary)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could check the query included the summary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked some fields, the summary is quite extensive. Maybe we could adapt the test_summary for testing the summary returned in the eager function.

Copy link
Contributor

@robsdedude robsdedude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me as is 🚀

One of my points didn't get discussed
#531 (comment)

But why do we even omit them? SessionRun e.g., always transmits params.

But I can make it work either way in the Python backend.

Copy link
Contributor

@thelonelyvulpes thelonelyvulpes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working great on dotnet

@robsdedude robsdedude merged commit ff55a76 into neo4j-drivers:5.0 Jan 23, 2023
@bigmontz bigmontz deleted the 5.x-execute-query branch January 24, 2023 14:05
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.

5 participants