Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
5b22d033
Commit
5b22d033
authored
Jan 26, 2017
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v1.1'
parents
25580cbc
c346c345
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
62 additions
and
3 deletions
+62
-3
apiargs-MongoDBCollection-method-bulkWrite-option.yaml
...es/apiargs-MongoDBCollection-method-bulkWrite-option.yaml
+3
-3
extracts-bulkwriteexception.yaml
docs/includes/extracts-bulkwriteexception.yaml
+21
-0
extracts-error.yaml
docs/includes/extracts-error.yaml
+8
-0
MongoDBCollection-bulkWrite.txt
docs/reference/method/MongoDBCollection-bulkWrite.txt
+7
-0
MongoDBCollection-deleteMany.txt
docs/reference/method/MongoDBCollection-deleteMany.txt
+2
-0
MongoDBCollection-deleteOne.txt
docs/reference/method/MongoDBCollection-deleteOne.txt
+2
-0
MongoDBCollection-insertMany.txt
docs/reference/method/MongoDBCollection-insertMany.txt
+7
-0
MongoDBCollection-insertOne.txt
docs/reference/method/MongoDBCollection-insertOne.txt
+6
-0
MongoDBCollection-replaceOne.txt
docs/reference/method/MongoDBCollection-replaceOne.txt
+2
-0
MongoDBCollection-updateMany.txt
docs/reference/method/MongoDBCollection-updateMany.txt
+2
-0
MongoDBCollection-updateOne.txt
docs/reference/method/MongoDBCollection-updateOne.txt
+2
-0
No files found.
docs/includes/apiargs-MongoDBCollection-method-bulkWrite-option.yaml
View file @
5b22d033
...
@@ -6,11 +6,11 @@ arg_name: option
...
@@ -6,11 +6,11 @@ arg_name: option
name
:
ordered
name
:
ordered
type
:
boolean
type
:
boolean
description
:
|
description
:
|
If ``true``: when a single write fails, the operation
returns
without
If ``true``: when a single write fails, the operation
will stop
without
performing the remaining writes.
performing the remaining writes
and throw an exception
.
If ``false``: when a single write fails, the operation will continue with the
If ``false``: when a single write fails, the operation will continue with the
remaining writes, if any.
remaining writes, if any
, and throw an exception
.
The default is ``true``.
The default is ``true``.
interface
:
phpmethod
interface
:
phpmethod
...
...
docs/includes/extracts-bulkwriteexception.yaml
0 → 100644
View file @
5b22d033
ref
:
bulkwriteexception-result
content
:
|
If a :php:`MongoDB\\Driver\\Exception\\BulkWriteException
<mongodb-driver-exception-bulkwriteexception>` is thrown, users should call
:php:`getWriteResult() <mongodb-driver-writeexception.getwriteresult>` and
inspect the returned :php:`MongoDB\\Driver\\WriteResult
<mongodb-driver-writeresult>` object to determine the nature of the error.
For example, a write operation may have been successfully applied to the
primary server but failed to satisfy the write concern (e.g. replication took
too long). Alternatively, a write operation may have failed outright (e.g.
unique key violation).
---
ref
:
bulkwriteexception-ordered
content
:
|
In the case of a bulk write, the result may indicate multiple successful write
operations and/or errors. If the ``ordered`` option is ``true``, some
operations may have succeeded before the first error was encountered and the
exception thrown. If the ``ordered`` option is ``false``, multiple errors may
have been encountered.
...
docs/includes/extracts-error.yaml
View file @
5b22d033
ref
:
error-driver-bulkwriteexception
content
:
|
:php:`MongoDB\\Driver\\Exception\\BulkWriteException
<mongodb-driver-exception-bulkwriteexception>` for errors related to the write
operation. Users should inspect the value returned by :php:`getWriteResult()
<mongodb-driver-writeexception.getwriteresult>` to determine the nature of the
error.
---
ref
:
error-driver-invalidargumentexception
ref
:
error-driver-invalidargumentexception
content
:
|
content
:
|
:php:`MongoDB\\Driver\\Exception\\InvalidArgumentException
:php:`MongoDB\\Driver\\Exception\\InvalidArgumentException
...
...
docs/reference/method/MongoDBCollection-bulkWrite.txt
View file @
5b22d033
...
@@ -40,8 +40,15 @@ Errors/Exceptions
...
@@ -40,8 +40,15 @@ Errors/Exceptions
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-driver-bulkwriteexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
Behavior
--------
.. include:: /includes/extracts/bulkwriteexception-result.rst
.. include:: /includes/extracts/bulkwriteexception-ordered.rst
.. todo: add output and examples
.. todo: add output and examples
See Also
See Also
...
...
docs/reference/method/MongoDBCollection-deleteMany.txt
View file @
5b22d033
...
@@ -40,12 +40,14 @@ Errors/Exceptions
...
@@ -40,12 +40,14 @@ Errors/Exceptions
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-driver-bulkwriteexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
Behavior
Behavior
--------
--------
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/bulkwriteexception-result.rst
Example
Example
-------
-------
...
...
docs/reference/method/MongoDBCollection-deleteOne.txt
View file @
5b22d033
...
@@ -42,12 +42,14 @@ Errors/Exceptions
...
@@ -42,12 +42,14 @@ Errors/Exceptions
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-driver-bulkwriteexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
Behavior
Behavior
--------
--------
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/bulkwriteexception-result.rst
Example
Example
-------
-------
...
...
docs/reference/method/MongoDBCollection-insertMany.txt
View file @
5b22d033
...
@@ -39,8 +39,15 @@ Errors/Exceptions
...
@@ -39,8 +39,15 @@ Errors/Exceptions
-----------------
-----------------
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-driver-bulkwriteexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
Behavior
--------
.. include:: /includes/extracts/bulkwriteexception-result.rst
.. include:: /includes/extracts/bulkwriteexception-ordered.rst
Example
Example
-------
-------
...
...
docs/reference/method/MongoDBCollection-insertOne.txt
View file @
5b22d033
...
@@ -39,8 +39,14 @@ Errors/Exceptions
...
@@ -39,8 +39,14 @@ Errors/Exceptions
-----------------
-----------------
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-driver-bulkwriteexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
Behavior
--------
.. include:: /includes/extracts/bulkwriteexception-result.rst
Example
Example
-------
-------
...
...
docs/reference/method/MongoDBCollection-replaceOne.txt
View file @
5b22d033
...
@@ -42,12 +42,14 @@ Errors/Exceptions
...
@@ -42,12 +42,14 @@ Errors/Exceptions
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-driver-bulkwriteexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
Behavior
Behavior
--------
--------
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/bulkwriteexception-result.rst
Example
Example
-------
-------
...
...
docs/reference/method/MongoDBCollection-updateMany.txt
View file @
5b22d033
...
@@ -40,12 +40,14 @@ Errors/Exceptions
...
@@ -40,12 +40,14 @@ Errors/Exceptions
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-driver-bulkwriteexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
Behavior
Behavior
--------
--------
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/bulkwriteexception-result.rst
Examples
Examples
--------
--------
...
...
docs/reference/method/MongoDBCollection-updateOne.txt
View file @
5b22d033
...
@@ -42,12 +42,14 @@ Errors/Exceptions
...
@@ -42,12 +42,14 @@ Errors/Exceptions
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-unsupportedexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-invalidargumentexception.rst
.. include:: /includes/extracts/error-driver-bulkwriteexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
.. include:: /includes/extracts/error-driver-runtimeexception.rst
Behavior
Behavior
--------
--------
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/note-bson-comparison.rst
.. include:: /includes/extracts/bulkwriteexception-result.rst
Examples
Examples
--------
--------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment