Skip to content

Commit

Permalink
In documentation clarify the purpose behind client creation. (#320)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Silvester <[email protected]>
Co-authored-by: Steven Silvester <[email protected]>
  • Loading branch information
3 people authored Jan 29, 2025
1 parent 0259b9f commit 9cf90a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion doc/tutorial-asyncio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ Motor, like PyMongo, represents data with a 4-level object hierarchy:

Creating a Client
-----------------
You typically create a single instance of :class:`~motor.motor_asyncio.AsyncIOMotorClient` at the time your
Creating a client is what establishes a connection to MongoDB and tells your
app what deployment (i.e. cluster) to connect to. You typically create a single
instance of :class:`~motor.motor_asyncio.AsyncIOMotorClient` at the time your
application starts up.

.. doctest:: before-inserting-2000-docs
Expand Down
5 changes: 3 additions & 2 deletions doc/tutorial-tornado.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ Motor, like PyMongo, represents data with a 4-level object hierarchy:

Creating a Client
-----------------
You typically create a single instance of :class:`MotorClient` at the time your
application starts up.
Creating a client is what establishes a connection to MongoDB and tells your
app what deployment (i.e. cluster) to connect to. You typically create a single
instance of :class:`MotorClient` at the time your application starts up.

.. doctest:: before-inserting-2000-docs

Expand Down

0 comments on commit 9cf90a8

Please sign in to comment.