Skip to content

DOP-4904: Inline docs for v1.16 #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 455 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
455 commits
Select commit Hold shift + click to select a range
521fd64
Merge pull request #488
jmikola Feb 7, 2018
9e99e12
Rename and reorder tailable cursor tutorial
jmikola Feb 8, 2018
3d69926
PHPLIB-328: Document ChangeStream iterator class
jmikola Feb 12, 2018
9a7f85e
PHPLIB-328: Document MapReduceResult class
jmikola Feb 12, 2018
2873fe4
Merge pull request #495
jmikola Feb 12, 2018
8254a56
PHPLIB-172: Support explain option for aggregate command
kvwalker Feb 23, 2018
4a313a0
Merge pull request #500
kvwalker Feb 27, 2018
fefe382
Document arrayFilters option for UpdateOne
jmikola Feb 27, 2018
74c34a7
Merge pull request #505
jmikola Feb 27, 2018
6bfba44
Merge branch 'v1.3'
jmikola Feb 27, 2018
c396108
removed collectionName attribute in GridFSbucket construct signature
Mar 7, 2018
c6b9d1d
Merge pull request #509
jmikola Mar 7, 2018
41571d2
Merge branch 'v1.1' into v1.2
jmikola Mar 7, 2018
1c4b757
Merge branch 'v1.2' into v1.3
jmikola Mar 7, 2018
ac037c5
Merge branch 'v1.3'
jmikola Mar 7, 2018
4200852
Add modifyCollection documentation
kvwalker Mar 19, 2018
2e865c4
Merge pull request #513
kvwalker Mar 20, 2018
4e15ad1
PHPLIB-332: Create explain helper on Collection class
kvwalker Feb 23, 2018
9e3a477
Merge pull request #501
kvwalker Mar 21, 2018
a81455a
PHPLIB-84: Allow Collection::dropIndex() to accept an IndexInfo object
kvwalker Mar 30, 2018
b7c4df4
Merge pull request #519
kvwalker Apr 4, 2018
a475d13
PHPLIB-278: Add examples for calling methods on database, collection,…
kvwalker Apr 4, 2018
86ce1b5
Merge pull request #522
kvwalker Apr 5, 2018
bd7ac9d
Revert "Merge pull request #522"
kvwalker Apr 9, 2018
1c33eb7
PHPLIB-278: Add examples for calling methods on database, collection,…
kvwalker Apr 9, 2018
fc3379c
Merge pull request #523
kvwalker Apr 9, 2018
1793da9
PHPLIB-80: Add IndexInfo helper methods for special index type options
kvwalker Apr 3, 2018
1ddb2ed
Merge pull request #521
kvwalker Apr 10, 2018
8ece32b
Fix RST syntax for isset() link
jmikola Apr 10, 2018
a268ffe
Merge branch 'v1.1' into v1.2
jmikola Apr 10, 2018
1df2d36
Merge branch 'v1.2' into v1.3
jmikola Apr 10, 2018
9455e41
Merge branch 'v1.3'
jmikola Apr 10, 2018
619cb07
Fix titles for createIndex and createIndexes
jmikola Apr 10, 2018
eee5e59
Merge branch 'v1.1' into v1.2
jmikola Apr 10, 2018
b1fc314
Merge branch 'v1.2' into v1.3
jmikola Apr 10, 2018
6e3ef10
Merge branch 'v1.3'
jmikola Apr 10, 2018
bd6ad38
PHPLIB-226: Document ArrayAccess for Collection and DatabaseInfo
jmikola Apr 10, 2018
b1f4ff7
Merge pull request #525
jmikola Apr 10, 2018
827aba9
PHPLIB-233: Add examples for each GridFS API method
kvwalker Apr 12, 2018
f3dad05
Merge pull request #527
kvwalker Apr 19, 2018
41eb5e5
Merge branch 'v1.3'
kvwalker Apr 19, 2018
d6f0a39
PHPLIB-346: Deprecate autoIndexId option for CreateCollection
jmikola Apr 23, 2018
9ce96cb
Merge pull request #533
jmikola Apr 23, 2018
a390652
PHPLIB-339: Deprecate snapshot option
kvwalker Apr 20, 2018
08e2a8e
Merge pull request #531
kvwalker May 1, 2018
6e527ae
PHPLIB-340: Deprecate maxScan query option
kvwalker Apr 20, 2018
ee6f3be
Merge pull request #532
kvwalker May 1, 2018
ed51e12
PHPLIB-319: Added 'disableMD5' option as GridFS MD5 digest must be op…
derickr Jun 21, 2018
73bcd98
Updates due to Jeremy's review
derickr Jun 22, 2018
f7d697c
Merged pull request #541
derickr Jun 22, 2018
ca6570e
PHPLIB-354: Implement new count API
derickr Jun 21, 2018
57541f6
Merged pull request #542
derickr Jun 22, 2018
15ec9df
PHPLIB-319: Fix indentation in disableMD5 option doc snippets
jmikola Jun 22, 2018
531a56d
Merge pull request #543
jmikola Jun 22, 2018
888b85f
Fix reference to constants in Collection::watch() docs
jmikola Jun 26, 2018
5bab836
Merge pull request #547 from mongodb/1.3-watch-fulldocument
jmikola Jun 26, 2018
ddd5844
Merge branch 'v1.3'
jmikola Jun 26, 2018
f13d5db
Fix monospace formatting in watch() docs
jmikola Jun 26, 2018
c9330cd
Merge pull request #548 from mongodb/watch-backticks
jmikola Jun 26, 2018
937db49
Merge branch 'v1.3'
jmikola Jun 26, 2018
5deffbc
PHPLIB-351: Documentation for watch() methods
jmikola Jun 26, 2018
9bb624e
Merge pull request #544
jmikola Jun 26, 2018
67fb29a
Refer to extension docs for Client::startSession() options
jmikola Jun 26, 2018
970c511
Merge pull request #549
jmikola Jun 26, 2018
a139d76
Merge branch 'v1.3'
jmikola Jun 26, 2018
00e7250
PHPLIB-359: Alternatives to restricted query operators for countDocum…
jmikola Jun 27, 2018
c42c769
Merge pull request #552
jmikola Jun 27, 2018
5d9f8b4
PHPLIB-363: Remove support for server versions < 3.0
jmikola Jun 27, 2018
f1c7574
Merge pull request #553
jmikola Jun 27, 2018
beeda3e
PHPLIB-364: Deprecate count() and elaborate on count method behaviors
jmikola Jun 27, 2018
25fc3d1
Merge pull request #555
jmikola Jun 27, 2018
e002bcd
PHPLIB-341: Add LocalDateTime example to tutorial
derickr Jul 31, 2018
d11507b
Merged pull request #571
derickr Jul 31, 2018
01153b3
PHPLIB-364: Document that transactions do not allow per-op read/write…
derickr Nov 30, 2018
4ba6259
Merged pull request #596
derickr Dec 3, 2018
c56b33e
PHPLIB-407: Support startAfter change stream option
jmikola Jul 9, 2019
823d1e8
Merge pull request #637
jmikola Jul 9, 2019
0f58d6b
PHPLIB-435: Document ChangeStream::getResumeToken()
jmikola Jul 16, 2019
359fe86
Add references to Client and Database watch() methods
jmikola Jul 16, 2019
cb6efc5
Merge pull request #641
jmikola Jul 16, 2019
2844683
PHPLIB-402: Add aggregation helper to Database class
alcaeus Jul 23, 2019
a29ed4c
PHPLIB-402: Add aggregate helper to Database class
alcaeus Jul 25, 2019
a2c7e20
PHPLIB-438: Unify handling for write stages in aggregation pipelines
alcaeus Jul 23, 2019
ce36eb7
PHPLIB-438: Unify handling for write stages in aggregation pipelines
alcaeus Jul 25, 2019
caa9bf6
PHPLIB-242: Add typeMap support for distinct
alcaeus Aug 1, 2019
e548405
Merge pull request #658
alcaeus Aug 7, 2019
008236b
PHPLIB-418: Add the ability to specify a pipeline to an update command
alcaeus Aug 12, 2019
05b2e75
Merge pull request #670
alcaeus Aug 27, 2019
f771ba4
Clear value for obsolete options field
jmikola Sep 6, 2019
1569a60
Merge pull request #681
alcaeus Sep 9, 2019
641efb2
PHPLIB-468: Add documentation for with_transaction
alcaeus Sep 5, 2019
af8a9dd
Merge pull request #680
alcaeus Sep 9, 2019
31f82c1
PHPLIB-455: Add BSON class mapping to upgrade guide
alcaeus Oct 2, 2019
439848d
PHPLIB-455: Footnotes for upgrade guide BSON table
jmikola Oct 3, 2019
7421888
Merge pull request #685
jmikola Oct 3, 2019
f67aae9
Revise Collection API section in upgrade guide
jmikola Oct 3, 2019
f20b14b
Merge pull request #686
jmikola Oct 7, 2019
e68ddc5
PHPLIB-477: Deprecate CodeWScope for use within the mapReduce command
alcaeus Oct 29, 2019
1b54292
Merge pull request #690
alcaeus Oct 30, 2019
e476a44
PHPLIB-511: Document autoEncryption options in Client constructor docs
alcaeus Jan 22, 2020
94f8a12
Merge pull request #708
alcaeus Jan 23, 2020
dd59b25
PHPLIB-512: Document createClientEncryption method
alcaeus Jan 22, 2020
478f508
Merge pull request #709
alcaeus Jan 24, 2020
418fb50
PHPLIB-521: Deprecate obsolete driver options
alcaeus Jan 28, 2020
9658c7f
Merge pull request #714
alcaeus Jan 29, 2020
3bc1501
Common docs for hint option
jmikola Jan 30, 2020
bd843cf
PHPLIB-491: Support hint for update command
jmikola Jan 30, 2020
a5f2e86
Merge pull request #717
jmikola Jan 30, 2020
e35350c
PHPLIB-492: Create tutorial for client side encryption
alcaeus Jan 29, 2020
f2f391a
Merge pull request #716
alcaeus Feb 3, 2020
3e28ca9
PHPLIB-497: Allow passing hint to findAndModify update/replace ops
jmikola Jan 24, 2020
702a81c
Merge pull request #711
jmikola Feb 14, 2020
0eaabec
PHPLIB-500: Support for allowDiskUse on find operations
alcaeus Feb 7, 2020
ee53a70
Merge pull request #721
alcaeus Feb 27, 2020
091b0b0
PHPLIB-520: Document deprecation of oplogReplay find option
alcaeus Mar 24, 2020
5fad17a
Merge pull request #730
alcaeus Mar 25, 2020
69518eb
PHPLIB-516: Append PHPLIB version information to handshake data
alcaeus Mar 24, 2020
75ea95f
Merge pull request #731
alcaeus Mar 25, 2020
a33d049
PHPLIB-539: Allow hinting for delete
alcaeus Mar 30, 2020
abaccd1
Merge pull request #732
alcaeus Apr 2, 2020
afe0ea2
PHPLIB-434: Add note about performance of countDocuments
alcaeus Apr 6, 2020
c869367
Fix typo in index documentation
alcaeus Apr 6, 2020
822dfee
Merge pull request #735
alcaeus Apr 7, 2020
e303a08
PHPLIB-545: Support the authorizedDatabases options for listDatabases
alcaeus Apr 20, 2020
23be0af
Merge pull request #739
alcaeus Apr 22, 2020
e4d0720
Fix type for createCollection validator option docs
jmikola May 4, 2020
9063f5e
Merge branch 'v1.1' into v1.2
jmikola May 4, 2020
5c58b35
Merge branch 'v1.2' into v1.3
jmikola May 4, 2020
d6791c1
Merge branch 'v1.3' into v1.4
jmikola May 4, 2020
e1d476b
Merge branch 'v1.4' into v1.5
jmikola May 4, 2020
7e68119
Merge branch 'v1.5' into v1.6
jmikola May 4, 2020
c712a13
Merge branch 'v1.6' into v1.7
jmikola May 4, 2020
ef308f5
PHPLIB-544: Add commitQuorum option to createIndexes
alcaeus Apr 28, 2020
55c7306
Don't duplicate description for docs
alcaeus Apr 29, 2020
f7f31bc
Merge pull request #741
alcaeus May 11, 2020
fc7a52f
DOCSP-10188: fix yaml file preventing docs build
Jun 1, 2020
52d7f4c
Merge pull request #752
jmikola Jun 1, 2020
c9845da
PHPLIB-559: Make aggregate command explainable
alcaeus Jun 30, 2020
9477aef
Merge pull request #760
alcaeus Jul 1, 2020
45d00ef
PHPLIB-547: Implement listDatabaseNames helper
alcaeus Jun 29, 2020
e937569
PHPLIB-547: Implement listCollectionNames helper
alcaeus Jun 29, 2020
081fc24
Merge pull request #758
alcaeus Jul 7, 2020
74022f2
PHPLIB-524 Restructure docs index
jmikola Jul 9, 2020
03311dc
PHPLIB-523 Document install steps for extension
jmikola Jul 9, 2020
d6b0ae2
Fix doc syntax and formatting
jmikola Jul 9, 2020
5ec2df1
Merge pull request #764
jmikola Jul 9, 2020
6f17a63
Merge branch 'v1.1' into v1.2
jmikola Jul 9, 2020
e8d9be1
Merge branch 'v1.2' into v1.3
jmikola Jul 9, 2020
22fa33b
Merge branch 'v1.3' into v1.4
jmikola Jul 9, 2020
84d3ae1
Merge branch 'v1.4' into v1.5
jmikola Jul 9, 2020
6900290
Merge branch 'v1.5' into v1.6
jmikola Jul 9, 2020
570cfa3
Merge branch 'v1.6' into v1.7
jmikola Jul 9, 2020
86c9e3f
PHPLIB-547: Fix links to new enumeration methods
jmikola Jul 16, 2020
a9d12be
Fixed missing backslash in documentation (#794)
yosmanyga Nov 12, 2020
046403b
PHPLIB-577: Add examples for aggregation methods (#797)
alcaeus Nov 18, 2020
c41bca3
PHPLIB-598: Clean up cursor usages to account for iterator changes (#…
alcaeus Jan 20, 2021
6966d03
PHPLIB-621 Document Versioned API usage (#815)
alcaeus Mar 31, 2021
0c7e297
PHPLIB-659 Support options for time-series collections (#829)
alcaeus Jun 29, 2021
aabf150
PHPLIB-654 Remove deprecated terminology (#828)
alcaeus Jun 29, 2021
430425b
PHPLIB-675 Document new CollectionInfo methods (#841)
alcaeus Jul 13, 2021
dcd716e
PHPLIB-690 Update documentation for time series collection options (#…
alcaeus Jul 13, 2021
f97595e
Fix RST syntax for listCollections link
jmikola Jul 14, 2021
14639bb
Merge branch 'v1.1' into v1.2
jmikola Jul 14, 2021
aafd4d6
Use "array|object" instead of "document" in MapReduce docs
jmikola Jul 14, 2021
6bdcba1
Merge branch 'v1.2' into v1.3
jmikola Jul 14, 2021
a5e536a
PHPLIB-309 and PHPLIB-315: Fix docs for jsMode and verbose MapReduce …
jmikola Jul 14, 2021
6880eeb
Merge branch 'v1.3' into v1.4
jmikola Jul 14, 2021
b1033e0
Merge branch 'v1.4' into v1.5
jmikola Jul 14, 2021
4dd2d35
Merge branch 'v1.5' into v1.6
jmikola Jul 14, 2021
dc7c09b
Merge branch 'v1.6' into v1.7
jmikola Jul 14, 2021
1d9db87
Fix RST syntax for listCollections link
jmikola Jul 14, 2021
71cc03a
Merge branch 'v1.7' into v1.8
jmikola Jul 14, 2021
73bae9c
Merge branch 'v1.8' into v1.9
jmikola Jul 14, 2021
64ad932
PHPLIB-663: Document aggregate "let" option (#846)
jmikola Jul 14, 2021
383e1ab
PHPLIB-518: RenameCollection operation (#840)
tanlisu Jul 26, 2021
2b1f468
PHPLIB-706 Fix syntax error in docs example (#853)
alcaeus Aug 11, 2021
a03ddbc
Merge branch 'v1.9'
alcaeus Aug 13, 2021
b64a1f3
PHPLIB-713: Document hint option for findOneAndDelete
jmikola Aug 30, 2021
1313907
Merge branch 'v1.7' into v1.8
jmikola Aug 30, 2021
dd0ef78
Merge branch 'v1.8' into v1.9
jmikola Aug 30, 2021
d8a54af
Merge branch 'v1.9'
jmikola Aug 30, 2021
c8c49ff
PHPLIB-765: Remove links to legacy extension docs (#872)
jmikola Nov 29, 2021
ec74976
Merge branch 'v1.7' into v1.8
jmikola Nov 29, 2021
1366148
Merge branch 'v1.8' into v1.9
jmikola Nov 29, 2021
27c2b7c
Merge branch 'v1.9' into v1.10
jmikola Nov 29, 2021
d95406d
PHPLIB-721: Aggregate allowDiskUse option should be unset by default …
jmikola Nov 30, 2021
0dee625
PHPLIB-740: Support authorizedCollections option for listCollections …
jmikola Dec 30, 2021
ffc722a
PHPLIB-697: Deprecate Collection::mapReduce()
jmikola Jan 14, 2022
deab125
PHPLIB-786: Rename "Versioned API" to "Stable API" in docs (#888)
jmikola Feb 11, 2022
ecd6c34
Merge branch 'v1.9' into v1.10
jmikola Feb 11, 2022
aa25af8
Merge branch 'v1.10' into v1.11
jmikola Feb 11, 2022
52426fd
Merge branch 'v1.11'
jmikola Feb 11, 2022
89428dc
PHPLIB-795, PHPLIB-796: Remove references to pre-3.6 servers (#893)
jmikola Mar 1, 2022
963e9c1
DOCSP-20374: Migrate docs.mongodb.com to mongodb.com/docs (#903)
terakilobyte Mar 30, 2022
f35e9b0
PHPLIB-827: Use https links in documentation and comments (#907)
jmikola Mar 30, 2022
4889f73
PHPLIB-748: Support 'let' option for multiple CRUD commands (#910)
aleksandr-rudo Apr 18, 2022
c9f96d7
PHPLIB-826: Remove use of admin database in CSFLE driver doc examples
aleksandr-rudo Apr 18, 2022
dcb3190
PHPLIB-814: Change stream support for point-in-time pre and post-imag…
jmikola Apr 20, 2022
8be87b6
PHPLIB-843: Support clusteredIndex option for createCollection
jmikola May 16, 2022
463b1c3
PHPLIB-856: changeStreamPreAndPostImages create and collMod option
jmikola May 16, 2022
63f28c2
PHPLIB-810: Document behavior for estimatedDocumentCount
jmikola May 19, 2022
70b3ab6
PHPLIB-869: Support viewOn and pipeline options in createCollection h…
aleksandr-rudo Jun 6, 2022
f0cd039
PHPLIB-851: Queryable encryption support for create/drop collection h…
jmikola May 31, 2022
dac59aa
PHPLIB-749: Support comment option on command helpers (#925)
aleksandr-rudo Jun 7, 2022
9cbe36c
Fix versionadded syntax for autoEncryption driver option
jmikola Jun 7, 2022
0c771ba
PHPLIB-846: Improved change stream event visibility for C2C Replicati…
aleksandr-rudo Jul 7, 2022
04d4c56
PHPLIB-893: Automatic queryable encryption in CSFLE tutorial (#952)
jmikola Jul 14, 2022
15b7461
Fix typo in fullDocument option docs (#969)
jmikola Sep 6, 2022
078656a
PHPLIB-596: Add tutorial for connecting to MongoDB (#979)
alcaeus Sep 28, 2022
2d48dea
PHPLIB-790: Docs for common troubleshooting issues (#982)
jmikola Sep 30, 2022
2b7be07
PHPLIB-987: Add more examples (#981)
alcaeus Oct 4, 2022
2293cf9
PHPLIB-980: Make uri parameter for MongoDB\Client::__construct nullab…
alcaeus Oct 6, 2022
e4991b6
PHPLIB-601: Document upcoming typing changes (#985)
alcaeus Oct 7, 2022
61c28e0
Add Github Actions workflow to build documentation (#993)
alcaeus Oct 12, 2022
b6bc50d
PHPLIB-989: Move persistable class documentation to tutorial (#987)
alcaeus Oct 12, 2022
b8d6fec
PHPLIB-986: Split keyAltName example and link key management docs (#995)
alcaeus Oct 24, 2022
3f5a86a
PHPLIB-572: Add debugging tools (#996)
alcaeus Oct 25, 2022
8b82bda
PHPLIB-1040: Demonstrate enum handling in BSON tutorial (#1004)
jmikola Nov 22, 2022
e5411c1
PHPLIB-1046: Fix snooty errors in documentation (#1010)
alcaeus Dec 14, 2022
42ea4e7
Refer Windows users to GitHub releases instead of PECL for DLLs (#1016)
jmikola Dec 19, 2022
2104213
Merge branch 'v1.15'
jmikola Dec 19, 2022
2b46959
PHPLIB-1055: Various small documentation fixes (#1024)
jmikola Jan 9, 2023
4172b6f
Remove British English spelling in docs (#1031)
OskarStark Jan 11, 2023
8d2f8dc
Add PHP open tag to examples (#1037)
OskarStark Jan 17, 2023
c4f3e66
[Documentation] Remove the words `easily` and `simply` (#1041)
OskarStark Jan 18, 2023
6c2e5c3
[Documentation] Remove duplicate word (#1040)
OskarStark Jan 18, 2023
c4318d4
[Documentation] Spelling (#1042)
OskarStark Jan 18, 2023
0e9ae96
Remove extra slashes in method signature
jmikola Mar 21, 2023
d7045c1
PHPLIB-1095: Queryable Encryption is "Public Technical Preview" (#1053)
jmikola Apr 11, 2023
4053f4f
Merge branch 'v1.13' into v1.15
jmikola Apr 11, 2023
4580a5f
Merge branch 'v1.15'
jmikola Apr 11, 2023
c1d32ac
Update docs for encryptedFields create/drop collection option (#1054)
jmikola Apr 11, 2023
acf59ea
PHPLIB-913: Database::createEncryptedCollection() helper (#1050)
jmikola Apr 12, 2023
a72c25b
PHPLIB-1056: Add missing types in reference doc (#1076)
GromNaN May 25, 2023
3dad291
PHPLIB-1057: Deprecate method IndexInfo::isGeoHaystack() (#1085)
GromNaN Jun 13, 2023
04f41df
PHPLIB-1149: Use consistent terminology when referring to the MongoDB…
GromNaN Jun 15, 2023
3e60e8d
PHPLIB-1130: Remove preview notice for CSFLE Queryable Encryption (#1…
jmikola Jun 15, 2023
97fed35
PHPLIB-1275: Replace apiargs usage in docs with extracts (#1220)
jmikola Jan 22, 2024
040c2ed
DOCSP-36898: fix seealso admonition formatting (#1230)
Feb 20, 2024
d675253
DOCSP-36027: Shorten class headings in nav (#1236)
norareidy Feb 27, 2024
e74c0c1
DOCSP-36627: Fix double backslashes (#1239)
norareidy Mar 4, 2024
85e1396
DOCSP-36627: More backslash fixes (#1244)
norareidy Mar 4, 2024
32c16b7
DOCSP-36898: Fix seealso syntax in CSFLE tutorial (#1265)
jmikola Mar 22, 2024
63ab20b
DOCSP-37027: Remove use of post in collection-option-collation (#1266)
jmikola Mar 25, 2024
d64897f
Fix versionadded syntax (#1269)
jmikola Mar 25, 2024
afa36dd
DOCSP-37027: Fix 1.16 build errors (#1290)
norareidy May 9, 2024
a6186fc
DOCSP-38371: Remove broken link (#1312)
mongoKart May 21, 2024
4bcfde7
DOCSP-38371: Fix broken doc links (#1326)
mongoKart May 22, 2024
42ebd32
DOP-4904: Merge remote-tracking branch 'remotes/driver-repo/v1.16' in…
i80and Aug 6, 2024
2772baa
DOP-4904: Remove git submodule
i80and Aug 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion mongo-php-library
Submodule mongo-php-library deleted from c7a67f
Empty file added source/.static/.mongodb
Empty file.
182 changes: 182 additions & 0 deletions source/faq.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
==========================
Frequently Asked Questions
==========================

.. default-domain:: mongodb

.. contents:: On this page
:local:
:backlinks: none
:depth: 2
:class: singlecol

Common Extension Installation Errors
------------------------------------

PHP Headers Not Found
~~~~~~~~~~~~~~~~~~~~~

For example:

.. code-block:: none

/private/tmp/pear/install/mongodb/php_phongo.c:24:10: fatal error: 'php.h' file not found

#include <php.h>
^~~~~~~

This error indicates that PHP's build system cannot find the necessary headers.
All PHP extensions require headers in order to compile. Additionally, those
headers must correspond to the PHP runtime for which the extension will be used.
Generally, the ``phpize`` command (invoked by ``pecl``) will ensure that the
extension builds with the correct headers.

Note that the mere presence of a PHP runtime does not mean that headers are
available. On various Linux distributions, headers are often published under a
separate ``php-dev`` or ``php-devel`` package. On macOS, the default PHP runtime
does not include headers and users typically need to install PHP (and headers)
via `Homebrew <https://brew.sh/>`_ in order to build an extension.

Multiple PHP Runtimes Installed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If your system has multiple versions of PHP installed, each version will have
its own ``pecl`` and ``phpize`` commands. Additionally, each PHP runtime may
have separate ``php.ini`` files for each SAPI (e.g. FPM, CLI). If the extension
has been installed but is not available at runtime, double-check that you have
used the correct ``pecl`` command and have modified the appropriate ``php.ini``
file(s).

If there is any doubt about the ``php.ini`` file being used by a PHP runtime,
you should examine the output of :php:`phpinfo() <phpinfo>` for that particular
SAPI. Additionally, :php:`php_ini_loaded_file() <php_ini_loaded_file>` and
:php:`php_ini_scanned_files() <php_ini_scanned_files>` may be used to determine
exactly which INI files have been loaded by PHP.

To debug issues with the extension not being loaded, you can use the
``detect-extension`` script provided in the tools directory. You can run this
script from the CLI or include it in a script accessible via your web server.
The tool will point out potential issues and installation instructions for your
system. Assuming you've installed the library through Composer, you can call the
script from the vendor directory:

.. code-block:: none

php vendor/mongodb/mongodb/tools/detect-extension.php

If you want to check configuration for a web server SAPI, include the file in
a script accessible from the web server and open it in your browser. Remember to
wrap the script in ``<pre>`` tags to properly format its output:

.. code-block:: php

<pre><?php require(...); ?></pre>

Loading an Incompatible DLL on Windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Windows binaries are available for various combinations of PHP version,
thread safety (TS or NTS), and architecture (x86 or x64). Failure to select the
correct binary will result in an error when attempting to load the extension DLL
at runtime:

.. code-block:: none

PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb'

Ensure that you have downloaded a DLL that corresponds to the following PHP
runtime properties:

- PHP version (``PHP_VERSION``)
- Thread safety (``PHP_ZTS``)
- Architecture (``PHP_INT_SIZE``)

In addition to the aforementioned constants, these properties can also be
inferred from :php:`phpinfo() <phpinfo>`. If your system has multiple PHP
runtimes installed, double-check that you are examining the ``phpinfo()`` output
for the correct environment.

The aforementioned ``detect-extension`` script can also be used to determine the
appropriate DLL for your PHP environment.

Server Selection Failures
-------------------------

The following are all examples of
:doc:`Server Selection </tutorial/server-selection>` failures:

.. code-block:: none

No suitable servers found (`serverSelectionTryOnce` set):
[connection refused calling hello on 'a.example.com:27017']
[connection refused calling hello on 'b.example.com:27017']

No suitable servers found: `serverSelectionTimeoutMS` expired:
[socket timeout calling hello on 'example.com:27017']

No suitable servers found: `serverSelectionTimeoutMS` expired:
[connection timeout calling hello on 'a.example.com:27017']
[connection timeout calling hello on 'b.example.com:27017']
[TLS handshake failed: -9806 calling hello on 'c.example.com:27017']

No suitable servers found: `serverselectiontimeoutms` timed out:
[TLS handshake failed: certificate verify failed (64): IP address mismatch calling hello on 'a.example.com:27017']
[TLS handshake failed: certificate verify failed (64): IP address mismatch calling hello on 'b.example.com:27017']

These errors typically manifest as a
:php:`MongoDB\Driver\Exception\ConnectionTimeoutException <mongodb-driver-exception-connectiontimeoutexception>`
exception from the driver. The actual exception messages originate from
libmongoc, which is the underlying library used by the PHP driver. Since these
messages can take many forms, it's helpful to break down the structure of the
message so you can better diagnose errors in your application.

Messages will typically start with "No suitable servers found". The next part of
the message indicates *how* server selection failed. By default, the PHP driver
avoids a server selection loop and instead makes a single attempt (according to
the ``serverSelectionTryOnce`` connection string option). If the driver is
configured to utilize a loop, a message like "serverSelectionTimeoutMS expired"
will tell us that we exhausted its time limit.

The last component of the message tells us *why* server selection failed, and
includes one or more errors directly from the topology scanner, which is the
service responsible for connecting to and monitoring each host. Any host that
last experienced an error during monitoring will be included in this list. These
messages typically originate from low-level socket or TLS functions.

The following is not meant to be exhaustive, but will hopefully point you in the
right direction for analyzing the contributing factor(s) for a server selection
failure:

- "connection refused" likely indicates that the remote host is not listening on
the expected port.
- "connection timeout" could indicate a routing or firewall issue, or perhaps
a timeout due to latency.
- "socket timeout" suggests that a connection *was* established at some point
but was dropped or otherwise timed out due to latency.
- "TLS handshake failed" suggests something related to TLS or OCSP verification
and is sometimes indicative of misconfigured TLS certificates.

In the case of a connection failure, you can use the ``connect`` tool to try and
receive more information. This tool attempts to connect to each host in a
connection string using socket functions to see if it is able to establish a
connection, send, and receive data. The tool takes the connection string to a
MongoDB deployment as its only argument. Assuming you've installed the library
through Composer, you would call the script from the vendor directory:

.. code-block:: none

php vendor/mongodb/mongodb/tools/connect.php mongodb://127.0.0.1:27017

In case the server does not accept connections, the output will look like this:

.. code-block:: none

Looking up MongoDB at mongodb://127.0.0.1:27017
Found 1 host(s) in the URI. Will attempt to connect to each.

Could not connect to 127.0.0.1:27017: Connection refused

.. note::

The tool only supports the ``mongodb://`` URI schema. Using the
``mongodb+srv`` scheme is not supported.
28 changes: 28 additions & 0 deletions source/includes/extracts-bucket-option.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ref: bucket-option-readConcern
source:
ref: common-option-readConcern
file: extracts-common-option.yaml
replacement:
object: bucket
---
ref: bucket-option-readPreference
source:
ref: common-option-readPreference
file: extracts-common-option.yaml
replacement:
object: bucket
---
ref: bucket-option-typeMap
source:
ref: common-option-typeMap
file: extracts-common-option.yaml
replacement:
object: bucket
---
ref: bucket-option-writeConcern
source:
ref: common-option-writeConcern
file: extracts-common-option.yaml
replacement:
object: bucket
...
21 changes: 21 additions & 0 deletions source/includes/extracts-bulkwriteexception.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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.
...
28 changes: 28 additions & 0 deletions source/includes/extracts-client-option.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ref: client-option-readConcern
source:
ref: common-option-readConcern
file: extracts-common-option.yaml
replacement:
object: client
---
ref: client-option-readPreference
source:
ref: common-option-readPreference
file: extracts-common-option.yaml
replacement:
object: client
---
ref: client-option-typeMap
source:
ref: common-option-typeMap
file: extracts-common-option.yaml
replacement:
object: client
---
ref: client-option-writeConcern
source:
ref: common-option-writeConcern
file: extracts-common-option.yaml
replacement:
object: client
...
41 changes: 41 additions & 0 deletions source/includes/extracts-collection-option.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ref: collection-option-collation
content: |
:manual:`Collation </reference/collation>` allows users to specify
language-specific rules for string comparison, such as rules for lettercase
and accent marks. When specifying collation, the ``locale`` field is
mandatory; all other collation fields are optional. For descriptions of the
fields, see :manual:`Collation Document </reference/collation/#collation-document>`.

If the collation is unspecified but the collection has a default collation,
the operation uses the collation specified for the collection. If no
collation is specified for the collection or for the operation, MongoDB uses
the simple binary comparison used in prior versions for string comparisons.
---
ref: collection-option-readConcern
source:
ref: common-option-readConcern
file: extracts-common-option.yaml
replacement:
object: collection
---
ref: collection-option-readPreference
source:
ref: common-option-readPreference
file: extracts-common-option.yaml
replacement:
object: collection
---
ref: collection-option-typeMap
source:
ref: common-option-typeMap
file: extracts-common-option.yaml
replacement:
object: collection
---
ref: collection-option-writeConcern
source:
ref: common-option-writeConcern
file: extracts-common-option.yaml
replacement:
object: collection
...
86 changes: 86 additions & 0 deletions source/includes/extracts-common-option.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
ref: common-option-collation
content: |
:manual:`Collation </reference/collation>` allows users to specify
language-specific rules for string comparison, such as rules for lettercase
and accent marks. When specifying collation, the ``locale`` field is
mandatory; all other collation fields are optional. For descriptions of the
fields, see :manual:`Collation Document </reference/collation/#collation-document>`.
---
ref: common-option-comment
content: |
Enables users to specify an arbitrary comment to help trace the operation
through the :manual:`database profiler </reference/database-profiler>`,
:manual:`currentOp </reference/command/currentOp>` output, and
:manual:`logs </reference/log-messages>`.
---
ref: common-option-comment-string-before-4.4
content: |
The comment can be any valid BSON type since MongoDB 4.4. Earlier server
versions only support string values.
---
ref: common-option-hint
content: |
The index to use. Specify either the index name as a string or the index key
pattern as a document. If specified, then the query system will only consider
plans using the hinted index.
---
ref: common-option-let
content: |
Map of parameter names and values. Values must be constant or closed
expressions that do not reference document fields. Parameters can then be
accessed as variables in an aggregate expression context (e.g. ``$$var``).

This is not supported for server versions prior to 5.0 and will result in an
exception at execution time if used.
---
ref: common-option-maxTimeMS
content: |
The cumulative time limit in milliseconds for processing operations on the
cursor. MongoDB aborts the operation at the earliest following
:term:`interrupt point`.
---
ref: common-option-readConcern
content: |
:manual:`Read concern </reference/read-concern>` to use for the operation.
Defaults to the {{object}}'s read concern.
replacement:
object: object
---
ref: common-option-readConcern-transaction
content: |
It is not possible to specify a read concern for individual operations as part
of a transaction. Instead, set the ``readConcern`` option when
:php:`starting the transaction <mongodb-driver-session.starttransaction>`.
---
ref: common-option-readPreference
content: |
:manual:`Read preference </reference/read-preference>` to use for the
operation. Defaults to the {{object}}'s read preference.
replacement:
object: object
---
ref: common-option-session
content: |
Client session to associate with the operation.
---
ref: common-option-typeMap
content: |
The :php:`type map <manual/en/mongodb.persistence.deserialization.php#mongodb.persistence.typemaps>`
to apply to cursors, which determines how BSON documents are converted to PHP
values. Defaults to the {{object}}'s type map.
replacement:
object: object
---
ref: common-option-writeConcern
content: |
:manual:`Write concern </reference/write-concern>` to use for the operation.
Defaults to the {{object}}'s write concern.
replacement:
object: object
---
ref: common-option-writeConcern-transaction
content: |
It is not possible to specify a write concern for individual operations as
part of a transaction. Instead, set the ``writeConcern`` option when
:php:`starting the transaction <mongodb-driver-session.starttransaction>`.
...
Loading