@@ -19,10 +19,10 @@ Definition
19
19
20
20
.. code-block:: php
21
21
22
- function selectDatabase(
23
- string $databaseName,
24
- array $options = []
25
- ): MongoDB\Database
22
+ function selectDatabase(
23
+ string $databaseName,
24
+ array $options = []
25
+ ): MongoDB\Database
26
26
27
27
Parameters
28
28
----------
@@ -34,32 +34,32 @@ Parameters
34
34
An array specifying the desired options.
35
35
36
36
.. list-table::
37
- :header-rows: 1
38
- :widths: 20 20 80
37
+ :header-rows: 1
38
+ :widths: 20 20 80
39
39
40
- * - Name
41
- - Type
42
- - Description
40
+ * - Name
41
+ - Type
42
+ - Description
43
43
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.
48
48
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.
53
53
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.
58
58
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.
63
63
64
64
Return Values
65
65
-------------
@@ -101,10 +101,10 @@ preference:
101
101
$client = new MongoDB\Client;
102
102
103
103
$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
+ ]
108
108
);
109
109
110
110
See Also
0 commit comments