Skip to content

Commit

Permalink
DOCSP-42206-adds-atlas-compat-for-database-methods (#10290)
Browse files Browse the repository at this point in the history
* DOCSP-42206 adds atlas compat for database methods

* Removes duplicate getName compatibility

* Fixes headings

* Reverts db.stats compat to limited for free/shared instances
  • Loading branch information
jwilson-mdb authored Nov 20, 2024
1 parent 05c5f6a commit e81dc03
Show file tree
Hide file tree
Showing 39 changed files with 293 additions and 59 deletions.
11 changes: 9 additions & 2 deletions source/reference/method/db.adminCommand.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,16 @@ Definition
or as a string. If specified as a string, the command cannot include
any arguments.



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

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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

Behavior
--------
Expand Down
2 changes: 0 additions & 2 deletions source/reference/method/db.aggregate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ Definition
Compatibility
-------------

.. |command| replace:: method

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

.. include:: /includes/fact-environments-atlas-only.rst
Expand Down
10 changes: 9 additions & 1 deletion source/reference/method/db.commandHelp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,13 @@ Description
- The name of a :term:`database command`.



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

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

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

.. include:: /includes/fact-environments-atlas-support-limited-free-and-m10.rst

.. include:: /includes/fact-environments-onprem-only.rst
9 changes: 7 additions & 2 deletions source/reference/method/db.createCollection.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@ Definition
Compatibility
-------------

.. |operator-method| replace:: ``db.createCollection()``
This method is available in deployments hosted in the following environments:

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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

.. include:: /includes/fact-compatibility.rst

Syntax
------
Expand Down
12 changes: 12 additions & 0 deletions source/reference/method/db.createView.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ db.createView()

.. include:: /includes/extracts/views-restriction-output-to-disk.rst

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

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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


Syntax
------

Expand Down
4 changes: 1 addition & 3 deletions source/reference/method/db.currentOp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ Definition
Compatibility
-------------

.. |command| replace:: method

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst
.. include:: /includes/fact-environments-atlas-support-no-free.rst

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

Expand Down
2 changes: 0 additions & 2 deletions source/reference/method/db.dropDatabase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ Definition
Compatibility
-------------

.. |command| replace:: method

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

.. include:: /includes/fact-environments-atlas-only.rst
Expand Down
9 changes: 9 additions & 0 deletions source/reference/method/db.fsyncLock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ Definition
:method:`db.fsyncLock()` is an administrative command. Use this method to
lock a server or cluster before :ref:`backup operations <backup-methods>`.

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

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

.. include:: /includes/fact-environments-no-atlas-support.rst

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

Behavior
--------

Expand Down
8 changes: 2 additions & 6 deletions source/reference/method/db.fsyncUnlock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,14 @@ Definition
Compatibility
-------------

.. |command| replace:: method

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

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

.. include:: /includes/fact-environments-atlas-support-no-free.rst
.. include:: /includes/fact-environments-no-atlas-support.rst

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

Compatibility with WiredTiger
-----------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. include:: /includes/extracts/wt-fsync-lock-compatibility.rst

Expand Down
11 changes: 10 additions & 1 deletion source/reference/method/db.getCollection.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ Definition
- The name of the collection.



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

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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


Behavior
Expand Down
12 changes: 12 additions & 0 deletions source/reference/method/db.getCollectionInfos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ Definition
command when access control is enforced. Otherwise, the user is
unauthorized to run the command.

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

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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


.. _db.getCollectionInfo-access-control:

Required Access
Expand Down
12 changes: 12 additions & 0 deletions source/reference/method/db.getCollectionNames.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ Definition
with access control, the names of the collections according to user's
privilege. For details, see :ref:`db.collectionnames-access`.

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

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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


.. _db.collectionnames-access:

Required Access
Expand Down
12 changes: 12 additions & 0 deletions source/reference/method/db.getLogComponents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ Definition
:method:`db.getLogComponents()` displays ``-1`` for the component's
verbosity.

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

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

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

.. include:: /includes/fact-environments-atlas-support-no-free.rst

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


Output
------

Expand Down
10 changes: 10 additions & 0 deletions source/reference/method/db.getMongo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@ db.getMongo()
:binary:`mongosh`. In :binary:`mongosh`, use
:method:`Mongo.setReadPref()` instead.

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

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

.. include:: /includes/fact-environments-onprem-only.rst
9 changes: 7 additions & 2 deletions source/reference/method/db.getName.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ Definition
Compatibility
-------------

.. |operator-method| replace:: ``db.getName()``
This method is available in deployments hosted in the following environments:

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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

.. include:: /includes/fact-compatibility.rst

Syntax
------
Expand Down
11 changes: 11 additions & 0 deletions source/reference/method/db.getProfilingStatus.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,14 @@ db.getProfilingStatus()
- the :method:`db.setProfilingLevel()` shell method, or

- the :setting:`operationProfiling.filter` configuration file option.

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

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

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

.. include:: /includes/fact-environments-atlas-support-no-free.rst

.. include:: /includes/fact-environments-onprem-only.rst
12 changes: 12 additions & 0 deletions source/reference/method/db.getReplicationInfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ Definition
polled from the :term:`oplog`. Use this output when diagnosing
issues with replication.

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

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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


Output
------

Expand Down
12 changes: 12 additions & 0 deletions source/reference/method/db.getSiblingDB.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ Definition
Used to return another database without modifying the
``db`` variable in the shell environment.

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

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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


Example
-------

Expand Down
6 changes: 2 additions & 4 deletions source/reference/method/db.hello.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ db.hello()
Compatibility
-------------

.. |command| replace:: method

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

.. include:: /includes/fact-environments-onprem-only.rst
.. include:: /includes/fact-environments-onprem-only.rst
11 changes: 11 additions & 0 deletions source/reference/method/db.help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,14 @@ db.help()
.. method:: db.help()

:returns: Text output listing common methods on the ``db`` object.

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

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

.. include:: /includes/fact-environments-onprem-only.rst
5 changes: 2 additions & 3 deletions source/reference/method/db.hostInfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ db.hostInfo()
Compatibility
-------------

.. |command| replace:: method

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

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

.. include:: /includes/fact-environments-atlas-support-no-free.rst

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

7 changes: 2 additions & 5 deletions source/reference/method/db.killOp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,13 @@ Description
Compatibility
-------------

.. |command| replace:: method

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

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

.. include:: /includes/fact-environments-atlas-support-limited-free-and-m10.rst
.. include:: /includes/fact-environments-no-atlas-support.rst

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


Sharded Cluster
---------------

Expand Down
5 changes: 2 additions & 3 deletions source/reference/method/db.listCommands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ db.listCommands()
Compatibility
-------------

.. |command| replace:: method

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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

5 changes: 2 additions & 3 deletions source/reference/method/db.logout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ db.logout()
Compatibility
-------------

.. |command| replace:: method

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

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

.. include:: /includes/fact-environments-atlas-support-all.rst

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

Loading

0 comments on commit e81dc03

Please sign in to comment.