Skip to content

Commit 3af0f22

Browse files
committed
Further update to SessionConfig.withDatabase documentation
1 parent 8632e1a commit 3af0f22

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

driver/src/main/java/org/neo4j/driver/SessionConfig.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,12 @@ public Builder withDefaultAccessMode(AccessMode mode) {
248248
/**
249249
* Sets target database name for queries executed within session.
250250
* <p>
251-
* This option has no explicit value by default, but it is recommended to set one if the target database is
252-
* known in advance. This has the benefit of ensuring a consistent target database name throughout the session
253-
* in a straightforward way and potentially simplifies driver logic as well as reduces network communication
254-
* resulting in better performance.
251+
* This option has no explicit value by default, as such it is recommended to set a value if the target database
252+
* is known in advance. This has the benefit of ensuring a consistent target database name throughout the
253+
* session in a straightforward way and potentially simplifies driver logic as well as reduces network
254+
* communication resulting in better performance.
255255
* <p>
256-
* Usage of Cypher clauses like USE is not a replacement for this option. Driver sends Cypher to the server for processing.
256+
* Cypher clauses like USE are not a replacement for this option as Cypher is handled by the server and not the driver.
257257
* <p>
258258
* When no explicit name is set, the driver behavior depends on the connection URI scheme supplied to the driver
259259
* on instantiation and Bolt protocol version.

0 commit comments

Comments
 (0)