Skip to content

Commit 80ab76d

Browse files
authored
Merge pull request #70 from steveren/DOCSP-13308
DOCSP-13308: [MONGOSH] Create Session Object
2 parents ccf725c + 23ea149 commit 80ab76d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

source/reference/methods.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ Collection Methods
357357

358358
- Validates a collection.
359359

360+
* - :method:`db.collection.watch()`
361+
362+
- Opens a :manual:`change stream cursor </change-streams>` on the
363+
collection.
364+
360365
Connection Methods
361366
------------------
362367

@@ -376,6 +381,13 @@ Connection Methods
376381

377382
- Sets the :term:`read preference` for the MongoDB connection.
378383

384+
* - :method:`Mongo.watch()`
385+
386+
- Opens a :manual:`change stream cursor </change-streams>` for a replica
387+
set or a sharded cluster to report on all its non-system collections
388+
across its databases, with the exception of the ``admin``, ``local``,
389+
and ``config`` databases.
390+
379391
Cursor Methods
380392
--------------
381393

@@ -649,6 +661,11 @@ Database Methods
649661
and :manual:`sampleRate
650662
</reference/method/db.setProfilingLevel/#set-profiling-level-options-samplerate>`.
651663

664+
* - :method:`db.watch()`
665+
666+
- Opens a :manual:`change stream cursor </change-streams>` for a
667+
database to report on all its non-system collections.
668+
652669
Free Monitoring Methods
653670
-----------------------
654671

@@ -930,6 +947,10 @@ Session Object Methods
930947

931948
- Description
932949

950+
* - :method:`Mongo.startSession()`
951+
952+
- Starts a session for the connection.
953+
933954
* - :manual:`Session.advanceOperationTime() </reference/method/Session>`
934955

935956
- Updates the operation time.
@@ -942,6 +963,10 @@ Session Object Methods
942963

943964
- Returns the most recent cluster time as seen by the session.
944965

966+
* - :manual:`Session.getDatabase() </reference/method/Session>`
967+
968+
- Access the specified database from the session in the shell.
969+
945970
* - :manual:`Session.getOperationTime() </reference/method/Session>`
946971

947972
- Returns the timestamp of the last acknowledged operation for the
@@ -955,6 +980,11 @@ Session Object Methods
955980

956981
- Returns a boolean that specifies whether the session has ended.
957982

983+
* - :method:`SessionOptions()`
984+
985+
- The options for a session in the shell. To access the
986+
:method:`SessionOptions()` object, use :method:`Session.getOptions()`.
987+
958988
Server Status Methods
959989
---------------------
960990

0 commit comments

Comments
 (0)