Skip to content

Commit c90ad5d

Browse files
committed
test
1 parent 2296609 commit c90ad5d

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

source/connect/connection-options.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Timeout Options
122122

123123
* - :manual:`connectTimeoutMS </reference/connection-string/#mongodb-urioption-urioption.connecttimeoutms>`
124124
- | **Data Type**: {+int-data-type+}
125-
- | **MongoDB\\Client Example**: ``$uriOptions = [ 'connectTimeoutMS' => 20000 ];``
125+
| **MongoDB\\Client Example**: ``$uriOptions = [ 'connectTimeoutMS' => 20000 ];``
126126
| **Connection URI Example**: ``connectTimeoutMS=20000``
127127

128128
* - :manual:`socketTimeoutMS </reference/connection-string/#mongodb-urioption-urioption.sockettimeoutms>`
@@ -224,8 +224,9 @@ Read Preference Options
224224

225225
* - :manual:`readPreference </reference/connection-string/#mongodb-urioption-urioption.readpreference>`
226226
- | **Data Type**: `MongoDB\\Driver\\ReadPreference <https://www.php.net/manual/en/class.mongodb-driver-readpreference.php>`__
227-
| **MongoDB\\Client Example**: ``$uriOptions = [ 'readPreference' => 'secondaryPreferred' ];``
228-
|
227+
| **MongoDB\\Client Example**:
228+
| ``$uriOptions = [ 'readPreference' => 'secondaryPreferred' ];``
229+
|
229230
| **Connection URI Example**: ``readPreference=secondaryPreferred``
230231

231232
* - :manual:`maxStalenessSeconds </reference/connection-string/#mongodb-urioption-urioption.maxstalenessseconds>`
@@ -235,7 +236,9 @@ Read Preference Options
235236

236237
* - :manual:`readPreferenceTags </reference/connection-string/#mongodb-urioption-urioption.readpreferencetags>`
237238
- | **Data Type**: ``array``
238-
| **MongoDB\\Client Example**: ``$uriOptions = [ 'readPreferenceTags' => [ [ 'region' => 'east' ], [ 'region' => 'west'] ] ];``
239+
| **MongoDB\\Client Example**:
240+
| ``$uriOptions = [ 'readPreferenceTags' => [ [ 'region' => 'east' ], [ 'region' => 'west'] ] ];``
241+
|
239242
| **Connection URI Example**: ``readPreferenceTags=region:east,region:west``
240243

241244
Authentication Options
@@ -255,8 +258,10 @@ Authentication Options
255258

256259
* - :manual:`authMechanismProperties </reference/connection-string/#mongodb-urioption-urioption.authmechanismproperties>`
257260
- | **Data Type**: {+string-data-type+}
258-
| **MongoDB\\Client Example**: ``$uriOptions = [ 'authMechanism' => 'MONGODB-AWS', 'authMechanismProperties' => 'AWS_SESSION_TOKEN:12345' ];``
259-
| **Connection URI Example**: ``authMechanism=MONGODB-AWS&authMechanismProperties=AWS_SESSION_TOKEN:12345``
261+
| **MongoDB\\Client Example**:
262+
| ``$uriOptions = [ 'authMechanismProperties' => 'AWS_SESSION_TOKEN:12345' ];``
263+
|
264+
| **Connection URI Example**: ``authMechanismProperties=AWS_SESSION_TOKEN:12345``
260265

261266
* - :manual:`authSource </reference/connection-string/#mongodb-urioption-urioption.authsource>`
262267
- | **Data Type**: {+string-data-type+}

0 commit comments

Comments
 (0)