-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix issues with Neo driver #324
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
Conversation
Neo4J Support in Go Migrate [WIP]
Turns out that there were unreported errors while running, and neo4j.Collect should make them visible and actionable. Also fixing tests that fail now that the errors are visible |
Pull Request Test Coverage Report for Build 636
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use neo4j.Collect()
instead of session.Run()
directly?
@dhui because of this issue: Turns out that session.Run doesn't return an error if the query fails, nor does the result, until the result is "consumed". neo4j.Collect is a utility function that runs and consumers, and returns the errors and results directly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, just one thing
go.mod
Outdated
github.com/neo4j-drivers/gobolt v1.7.4 // indirect | ||
github.com/neo4j/neo4j-go-driver v1.7.4 | ||
github.com/pkg/errors v0.8.1 // indirect | ||
github.com/prometheus/common v0.2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run go mod tidy
. This line should go away
No description provided.