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

Add multi-database support #450

Merged
merged 4 commits into from
Apr 17, 2019
Merged

Add multi-database support #450

merged 4 commits into from
Apr 17, 2019

Conversation

ali-ince
Copy link
Contributor

@ali-ince ali-ince commented Apr 15, 2019

This PR adds multi-database support for the driver against a multi-database supporting database. A session is operating against a database which can be selected while creating the session object through driver.session call. The default database is set to be an empty string '' and connects to the default database as set on the database.

API Changes

driver.session function signature is now changed in a breaking manner. The new signature includes an object destructuring construct where you can now pass parameters by name.

While previously the parameters were positional, like

const session = driver.session(WRITE, bookmark),

now it has been changed like

const session = driver.session({ defaultAccessMode: WRITE, bookmark: bookmark, db: db })

The API is changed to leverage object destructuring, so that we have named arguments and default values.
@ali-ince ali-ince requested a review from zhenlineo April 15, 2019 12:25
@zhenlineo zhenlineo merged commit 9a5440c into neo4j:2.0 Apr 17, 2019
@ali-ince ali-ince deleted the 2.0-bolt-v4 branch July 3, 2019 08:29
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.

2 participants