Skip to content

Add supportsMultiDb function #491

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 5 commits into from
Oct 4, 2019
Merged

Conversation

ali-ince
Copy link
Contributor

This PR adds a new supportsMultiDb method on Driver, that when called negotiates a protocol for the remote database (or one of the seed routers) and returns a boolean Promise telling whether it supports multi database features based on the bolt protocol version only.

Based on #490.

@ali-ince ali-ince force-pushed the 4.0-supports-multidb branch from 7494aa4 to 1d392ca Compare September 30, 2019 17:28
@oskarhane
Copy link
Member

Thanks @ali-ince!

@ali-ince ali-ince force-pushed the 4.0-supports-multidb branch from 1d392ca to f7913f1 Compare October 1, 2019 16:25
@ali-ince ali-ince requested a review from zhenlineo October 1, 2019 16:57
Copy link
Contributor

@zhenlineo zhenlineo left a comment

Choose a reason for hiding this comment

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

Just wondering if we can just do a return 1 and return "support multi-db" if the server version in result summary is greater than 4.0?

@ali-ince
Copy link
Contributor Author

ali-ince commented Oct 3, 2019

@zhenlineo we wanted it to happen even without authentication (due to the fact that on initial login the password could be reported as expired and nothing other than change password functionality is allowed) so picked the handshake path.

@zhenlineo zhenlineo merged commit 8d014b2 into neo4j:4.0 Oct 4, 2019
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.

3 participants