@@ -19,10 +19,10 @@ Definition
1919
2020 .. code-block:: php
2121
22- function selectDatabase(
23- string $databaseName,
24- array $options = []
25- ): MongoDB\Database
22+ function selectDatabase(
23+ string $databaseName,
24+ array $options = []
25+ ): MongoDB\Database
2626
2727Parameters
2828----------
@@ -34,32 +34,32 @@ Parameters
3434 An array specifying the desired options.
3535
3636 .. list-table::
37- :header-rows: 1
38- :widths: 20 20 80
37+ :header-rows: 1
38+ :widths: 20 20 80
3939
40- * - Name
41- - Type
42- - Description
40+ * - Name
41+ - Type
42+ - Description
4343
44- * - readConcern
45- - :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>`
46- - The default read concern to use for database operations. Defaults to
47- the client's read concern.
44+ * - readConcern
45+ - :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>`
46+ - The default read concern to use for database operations. Defaults to
47+ the client's read concern.
4848
49- * - readPreference
50- - :php:`MongoDB\Driver\ReadPreference <class.mongodb-driver-readpreference>`
51- - The default read preference to use for database operations. Defaults to
52- the client's read preference.
49+ * - readPreference
50+ - :php:`MongoDB\Driver\ReadPreference <class.mongodb-driver-readpreference>`
51+ - The default read preference to use for database operations. Defaults to
52+ the client's read preference.
5353
54- * - typeMap
55- - array
56- - The default type map to use for database operations. Defaults to the
57- client's type map.
54+ * - typeMap
55+ - array
56+ - The default type map to use for database operations. Defaults to the
57+ client's type map.
5858
59- * - writeConcern
60- - :php:`MongoDB\Driver\WriteConcern <class.mongodb-driver-writeconcern>`
61- - The default write concern to use for database operations. Defaults to
62- the client's write concern.
59+ * - writeConcern
60+ - :php:`MongoDB\Driver\WriteConcern <class.mongodb-driver-writeconcern>`
61+ - The default write concern to use for database operations. Defaults to
62+ the client's write concern.
6363
6464Return Values
6565-------------
@@ -101,10 +101,10 @@ preference:
101101 $client = new MongoDB\Client;
102102
103103 $db = $client->selectDatabase(
104- 'test',
105- [
106- 'readPreference' => new MongoDB\Driver\ReadPreference('primaryPreferred'),
107- ]
104+ 'test',
105+ [
106+ 'readPreference' => new MongoDB\Driver\ReadPreference('primaryPreferred'),
107+ ]
108108 );
109109
110110See Also
0 commit comments