Skip to content

Commit 24c69ac

Browse files
committed
Clarify usage of USE clause along with SessionConfig#database
1 parent 67ffa9a commit 24c69ac

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/core/src/driver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ class SessionConfig {
138138
* straightforward way and potentially simplifies driver logic as well as
139139
* reduces network communication resulting in better performance.
140140
*
141+
* Usage of Cypher clauses like USE is not a replacement for this option.
142+
* Driver sends Cypher to the server for processing.
143+
*
141144
* When no explicit name is set, the driver behavior depends on the connection
142145
* URI scheme supplied to the driver on instantiation and Bolt protocol
143146
* version.

packages/neo4j-driver-deno/lib/core/driver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ class SessionConfig {
138138
* straightforward way and potentially simplifies driver logic as well as
139139
* reduces network communication resulting in better performance.
140140
*
141+
* Usage of Cypher clauses like USE is not a replacement for this option.
142+
* Driver sends Cypher to the server for processing.
143+
*
141144
* When no explicit name is set, the driver behavior depends on the connection
142145
* URI scheme supplied to the driver on instantiation and Bolt protocol
143146
* version.

0 commit comments

Comments
 (0)