Skip to content

Commit 60bac62

Browse files
committed
feedback
1 parent e02bfd7 commit 60bac62

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

source/connect/client.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ A standard connection string includes the following components:
5353
- Required. A prefix that identifies this as a string in the
5454
standard connection format.
5555

56-
* - ``username:password``
56+
* - ``db_username:db_password``
5757

5858
- Optional. Authentication credentials. If you include these, the client
5959
authenticates the user against the database specified in ``authSource``.
@@ -68,7 +68,7 @@ A standard connection string includes the following components:
6868
* - ``/defaultauthdb``
6969

7070
- Optional. The authentication database to use if the
71-
connection string includes ``username:password@``
71+
connection string includes ``db_username:db_password@``
7272
authentication credentials but not the ``authSource`` option. If you don't include
7373
this component, the client authenticates the user against the ``admin`` database.
7474

@@ -83,8 +83,8 @@ To learn more about connection strings, see
8383
:manual:`Connection Strings </reference/connection-string>` in the
8484
Server manual.
8585

86-
Create a ``MongoDB\Client``
87-
---------------------------
86+
Create a MongoDB\Client
87+
-----------------------
8888

8989
To create a connection to MongoDB, pass your connection string when constructing
9090
an instance of the ``MongoDB\Client`` class.
@@ -99,8 +99,7 @@ deployment on port ``27017`` of ``localhost``:
9999
.. tip:: Reuse Your Client
100100

101101
Because each ``MongoDB\Client`` object represents a pool of connections to the
102-
database, most applications require only a single instance of
103-
``MongoDB\Client``, even across multiple requests.
102+
database, you can use a single instance of the class across multiple requests.
104103

105104
API Documentation
106105
-----------------

source/reference/class/MongoDBClient.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _php-api-mongodbclient:
2+
13
=====================
24
MongoDB\\Client Class
35
=====================
@@ -62,4 +64,4 @@ Methods
6264
- :phpmethod:`MongoDB\Client::selectCollection()`
6365
- :phpmethod:`MongoDB\Client::selectDatabase()`
6466
- :phpmethod:`MongoDB\Client::startSession()`
65-
- :phpmethod:`MongoDB\Client::watch()`
67+
- :phpmethod:`MongoDB\Client::watch()`

0 commit comments

Comments
 (0)