Skip to content

Commit

Permalink
DOCSP-42214-mongosh-connection-atlas-compatibility (#10316)
Browse files Browse the repository at this point in the history
* DOCSP-42214-mongosh-connection-atlas-compatibility

* DOCSP-42214-mongosh-connection-atlas-compatibility
  • Loading branch information
ltran-mdb2 authored Nov 20, 2024
1 parent fc89b5e commit 583eb82
Show file tree
Hide file tree
Showing 14 changed files with 126 additions and 10 deletions.
11 changes: 8 additions & 3 deletions source/reference/method/Mongo.getDB.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ Description
- string

- The name of the database to access.




Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Example
-------
Expand Down
8 changes: 8 additions & 0 deletions source/reference/method/Mongo.getDBNames.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ Description

The :method:`Mongo.getDBNames()` method doesn't take any parameters.

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Examples
--------
Expand Down
8 changes: 8 additions & 0 deletions source/reference/method/Mongo.getDBs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ Description

The :method:`Mongo.getDBs()` method doesn't take any parameters.

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Example
-------
Expand Down
19 changes: 14 additions & 5 deletions source/reference/method/Mongo.getReadPrefMode.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,18 @@ Mongo.getReadPrefMode()
- :readmode:`secondaryPreferred`
- :readmode:`nearest`

.. seealso::
Compatibility
-------------

- :doc:`/core/read-preference`
- :method:`~cursor.readPref()`
- :method:`~Mongo.setReadPref()`
- :method:`~Mongo.getReadPrefTagSet()`
This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

.. seealso::

- :doc:`/core/read-preference`
- :method:`~cursor.readPref()`
- :method:`~Mongo.setReadPref()`
- :method:`~Mongo.getReadPrefTagSet()`
9 changes: 9 additions & 0 deletions source/reference/method/Mongo.getReadPrefTagSet.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ Mongo.getReadPrefTagSet()

printjson(db.getMongo().getReadPrefTagSet());

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

.. seealso::

- :doc:`/core/read-preference`
Expand Down
9 changes: 9 additions & 0 deletions source/reference/method/Mongo.getWriteConcern.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ Definition
See the :ref:`write-concern` for an introduction to write concerns
in MongoDB.

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Syntax
------

Expand Down
9 changes: 9 additions & 0 deletions source/reference/method/Mongo.setCausalConsistency.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ Definition

conn.setCausalConsistency(false);

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Example
-------

Expand Down
9 changes: 9 additions & 0 deletions source/reference/method/Mongo.setReadPref.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ Parameters
:ref:`replica-set-read-preference-max-staleness` option for read
preference.

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Behavior
--------

Expand Down
9 changes: 9 additions & 0 deletions source/reference/method/Mongo.setWriteConcern.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ Definition
See the :ref:`write-concern` for an introduction to write concerns
in MongoDB.

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Syntax
------

Expand Down
9 changes: 9 additions & 0 deletions source/reference/method/Mongo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ Description

:method:`Mongo.getDB()` and :method:`db.getMongo()`

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

.. _{+auto-encrypt-options+}:

``{+title-auto-encrypt-options+}``
Expand Down
9 changes: 9 additions & 0 deletions source/reference/method/Mongo.watch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,15 @@ Definition

:method:`db.collection.watch()` and :method:`db.watch()`

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Availability
------------

Expand Down
9 changes: 9 additions & 0 deletions source/reference/method/Session.startTransaction.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ Definition
For MongoDB Drivers, transactions use the client-level write
concern as the default.

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Behavior
--------

Expand Down
9 changes: 9 additions & 0 deletions source/reference/method/SessionOptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,12 @@ Definition
Verify which options are enabled for the session by running
``Session.getOptions()``.

Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

9 changes: 7 additions & 2 deletions source/reference/method/connect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@ Description
- Optional unless the ``user`` parameter is specified. Specifies the
password for the ``user``.



Compatibility
-------------

This method is available in deployments hosted in the following environments:

.. include:: /includes/fact-environments-atlas-only.rst

.. include:: /includes/fact-environments-onprem-only.rst

Example
-------
Expand Down

0 comments on commit 583eb82

Please sign in to comment.