Skip to content

Commit

Permalink
PHPLIB-749: Support comment option on command helpers (#925)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Mikola <[email protected]>
  • Loading branch information
aleksandr-rudo and jmikola authored Jun 7, 2022
1 parent 1ee1243 commit 32a1cf8
Show file tree
Hide file tree
Showing 82 changed files with 679 additions and 177 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ interface: phpmethod
operation: ~
optional: true
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
arg_name: option
name: filter
type: array|object
Expand Down
9 changes: 9 additions & 0 deletions docs/includes/apiargs-MongoDBClient-method-watch-option.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ source:
file: apiargs-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
The comment can be any valid BSON type for server versions 4.4 and above.
Earlier server versions only support string values.
.. versionadded:: 1.13
---
source:
file: apiargs-method-watch-option.yaml
ref: fullDocument
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ source:
ref: bypassDocumentValidation
---
source:
file: apiargs-aggregate-option.yaml
file: apiargs-common-option.yaml
ref: comment
post: |
The comment can be any valid BSON type for server versions 4.4 and above.
Earlier server versions only support string values.
.. versionadded:: 1.3
---
source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: bypassDocumentValidation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: let
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
arg_name: option
name: hint
type: string|array|object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
The comment can be any valid BSON type for server versions 4.4 and above.
Earlier server versions only support string values.
---
arg_name: option
name: hint
type: string|array|object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ interface: phpmethod
operation: ~
optional: true
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
arg_name: option
name: unique
type: boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-MongoDBCollection-method-createIndex-option.yaml
ref: commitQuorum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-dropCollection-option.yaml
ref: encryptedFields
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
11 changes: 11 additions & 0 deletions docs/includes/apiargs-MongoDBCollection-method-explain-option.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
Defaults to the ``comment`` of the explained operation (if any).
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: readPreference
Expand Down
15 changes: 6 additions & 9 deletions docs/includes/apiargs-MongoDBCollection-method-find-option.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,12 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
arg_name: option
name: comment
type: string
description: |
A comment to attach to the query to help interpret and trace query
:dbcommand:`profile` data.
interface: phpmethod
operation: ~
optional: true
source:
file: apiargs-common-option.yaml
ref: comment
post: |
The comment can be any valid BSON type for server versions 4.4 and above.
Earlier server versions only support string values.
---
arg_name: option
name: cursorType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: hint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: bypassDocumentValidation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-MongoDBCollection-method-bulkWrite-option.yaml
ref: ordered
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: bypassDocumentValidation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: session
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-common-option.yaml
ref: maxTimeMS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: collation
---
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
arg_name: option
name: finalize
type: :php:`MongoDB\\BSON\\Javascript <class.mongodb-bson-javascript>`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
source:
file: apiargs-common-option.yaml
ref: comment
post: |
This is not supported for server versions prior to 4.4 and will result in an
exception at execution time if used.
.. versionadded:: 1.13
---
source:
file: apiargs-MongoDBCollection-common-option.yaml
ref: typeMap
Expand Down
Loading

0 comments on commit 32a1cf8

Please sign in to comment.