Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-02-2021 08:30 AM
I am considering using the Reactive Sessions in my java application with Neo4j. I am using Neo4j 4.1 which supports multiple databases. With a synchronous session we can pass a SessionConfig that indicates the database to use for that session. In the examples for a Reactive session The session API - Neo4j Driver Manual I don't see any mechanism to pass the database name. Can someone show me how to achieve this with a Reactive Session?
02-02-2021 10:35 AM
The session API - Neo4j Driver Manual states
Sessions can be configured in a number of different ways. This is carried out by supplying configuration inside the session constructor. See [Session configuration](https://neo4j.com/docs/driver-manual/current/session-api/configuration/#driver-session-configuration) for more details.
and clicking 'Session Configuration' leads to The session API - Neo4j Driver Manual which indicates
Database
The database with which the session will interact. When you are working with a database which is not the default (i.e. the system database or another database in Neo4j 4.0 Enterprise Edition), you can explicitly configure the database which the driver is executing transactions against. See Operations Manual → The default database for more information on databases.
Default: the default database as configured on the server.
All the sessions of the conference are now available online