File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -175,15 +175,15 @@ class Driver {
175175 }
176176
177177 /**
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 .
181181 *
182182 * This comes with some responsibility - make sure you always call
183183 * {@link close} when you are done using a session, and likewise,
184184 * 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.
187187 *
188188 * @param {string } [mode=WRITE] the access mode of this session, allowed values are {@link READ} and {@link WRITE}.
189189 * @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