File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -175,15 +175,15 @@ class Driver {
175
175
}
176
176
177
177
/**
178
- * Acquire a session to communicate with the database. The driver maintains
179
- * a pool of sessions, so calling this method is normally cheap because you
180
- * will be pulling a session out of the common pool .
178
+ * Acquire a session to communicate with the database. The session will
179
+ * borrow connections from the underlying connection pool as required and
180
+ * should be considered lightweight and disposable .
181
181
*
182
182
* This comes with some responsibility - make sure you always call
183
183
* {@link close} when you are done using a session, and likewise,
184
184
* make sure you don't close your session before you are done using it. Once
185
- * it is returned to the pool , the session will be reset to a clean state and
186
- * made available for others to use.
185
+ * it is closed , the underlying connection will be released to the connection
186
+ * pool and made available for others to use.
187
187
*
188
188
* @param {string } [mode=WRITE] the access mode of this session, allowed values are {@link READ} and {@link WRITE}.
189
189
* @param {string|string[] } [bookmarkOrBookmarks=null] the initial reference or references to some previous
You can’t perform that action at this time.
0 commit comments