Skip to content

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 })

ali-ince added 4 commits April 9, 2019 20:37
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