Skip to content

Commit f823cfd

Browse files
authored
Merge v1.17 into master (#1272)
2 parents 8c92163 + 62878a3 commit f823cfd

29 files changed

+174
-11
lines changed

docs/includes/extracts-bucket-option.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
ref: bucket-option-codec
2+
content: |
3+
The :doc:`codec </tutorial/codecs>` to use for encoding or decoding documents.
4+
This option is mutually exclusive with the ``typeMap`` option.
5+
6+
Defaults to the bucket's codec. Inheritance for a default ``codec`` option
7+
takes precedence over that of the ``typeMap`` option.
8+
---
19
ref: bucket-option-readConcern
210
source:
311
ref: common-option-readConcern

docs/includes/extracts-collection-option.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1+
ref: collection-option-codec
2+
content: |
3+
The :doc:`codec </tutorial/codecs>` to use for encoding or decoding documents.
4+
This option is mutually exclusive with the ``typeMap`` option.
5+
6+
Defaults to the collection's codec. Inheritance for a default ``codec`` option
7+
takes precedence over that of the ``typeMap`` option.
8+
---
19
ref: collection-option-collation
2-
source:
3-
ref: common-option-collation
4-
file: extracts-common-option.yaml
5-
post: |
10+
content: |
11+
:manual:`Collation </reference/collation>` allows users to specify
12+
language-specific rules for string comparison, such as rules for lettercase
13+
and accent marks. When specifying collation, the ``locale`` field is
14+
mandatory; all other collation fields are optional. For descriptions of the
15+
fields, see :manual:`Collation Document </reference/collation/#collation-document>`.
16+
617
If the collation is unspecified but the collection has a default collation,
718
the operation uses the collation specified for the collection. If no
819
collation is specified for the collection or for the operation, MongoDB uses

docs/includes/extracts-common-option.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
ref: common-option-codec
2+
content: |
3+
The :doc:`codec </tutorial/codecs>` to use for encoding or decoding documents.
4+
This option is mutually exclusive with the ``typeMap`` option.
5+
---
16
ref: common-option-collation
27
content: |
38
:manual:`Collation </reference/collation>` allows users to specify

docs/includes/extracts-watch-option.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ content: |
6161
6262
This is an option of the ``$changeStream`` pipeline stage.
6363
64-
.. versionadded: 1.13
64+
.. versionadded:: 1.13
6565
---
6666
ref: watch-option-maxAwaitTimeMS
6767
content: |
@@ -121,7 +121,7 @@ content: |
121121
122122
This is an option of the ``$changeStream`` pipeline stage.
123123
124-
.. versionadded: 1.5
124+
.. versionadded:: 1.5
125125
---
126126
ref: watch-option-startAtOperationTime
127127
content: |

docs/reference/class/MongoDBCollection.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,3 @@ Methods
144144
- :phpmethod:`MongoDB\Collection::updateSearchIndex()`
145145
- :phpmethod:`MongoDB\Collection::watch()`
146146
- :phpmethod:`MongoDB\Collection::withOptions()`
147-

docs/reference/method/MongoDBClient-selectCollection.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ Parameters
4545
- Type
4646
- Description
4747

48+
* - codec
49+
- MongoDB\\Codec\\DocumentCodec
50+
- The default :doc:`codec </tutorial/codecs>` to use for collection
51+
operations.
52+
53+
.. versionadded:: 1.17
54+
4855
* - readConcern
4956
- :php:`MongoDB\Driver\ReadConcern <class.mongodb-driver-readconcern>`
5057
- The default read concern to use for collection operations. Defaults to

docs/reference/method/MongoDBClient-watch.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ Parameters
4848
- integer
4949
- .. include:: /includes/extracts/watch-option-batchSize.rst
5050

51+
* - codec
52+
- MongoDB\\Codec\\DocumentCodec
53+
- .. include:: /includes/extracts/common-option-codec.rst
54+
55+
.. versionadded:: 1.17
56+
5157
* - collation
5258
- array|object
5359
- .. include:: /includes/extracts/common-option-collation.rst

docs/reference/method/MongoDBCollection-aggregate.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ Parameters
7070
This only applies when using the :ref:`$out <agg-out>` and
7171
:ref:`$out <agg-merge>` stages.
7272

73+
* - codec
74+
- MongoDB\\Codec\\DocumentCodec
75+
- .. include:: /includes/extracts/collection-option-codec.rst
76+
77+
.. versionadded:: 1.17
78+
7379
* - collation
7480
- array|object
7581
- .. include:: /includes/extracts/collection-option-collation.rst

docs/reference/method/MongoDBCollection-bulkWrite.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ Parameters
7070
- If ``true``, allows the write operation to circumvent document level
7171
validation. Defaults to ``false``.
7272

73+
* - codec
74+
- MongoDB\\Codec\\DocumentCodec
75+
- .. include:: /includes/extracts/collection-option-codec.rst
76+
77+
Bulk writes use the codec for ``insertOne`` and ``replaceOne``
78+
operations.
79+
80+
.. versionadded:: 1.17
81+
7382
* - comment
7483
- mixed
7584
- .. include:: /includes/extracts/common-option-comment.rst

docs/reference/method/MongoDBCollection-find.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ Parameters
6161
Unlike the previous wire protocol version, a batchSize of ``1`` for the
6262
:dbcommand:`find` command does not close the cursor.
6363

64+
* - codec
65+
- MongoDB\\Codec\\DocumentCodec
66+
- .. include:: /includes/extracts/collection-option-codec.rst
67+
68+
.. versionadded:: 1.17
69+
6470
* - collation
6571
- array|object
6672
- .. include:: /includes/extracts/collection-option-collation.rst

0 commit comments

Comments
 (0)