Commit Graph

54 Commits

Author SHA1 Message Date
Steven Silvester
7b82b3582f
PYTHON-5440 Use dochub link for index-wildcard (#2427) 2025-07-14 10:03:33 -05:00
Jeffrey A. Clark
166821f22c
PYTHON-5205 Replace http with https in doc links (#2204) 2025-03-14 21:37:11 -04:00
Shane Harvey
0733c4da44
PYTHON-4925 Fix test bugs in $$matchAsDocument and $$matchAsRoot (#1988)
Fixes a bug where the driverConnectionId field was missing from "server heartbeat failed" log messages.
Avoids sending "upsert": False since various client.bulkWrite spec tests assume this field is only sent when it's True.
2024-11-05 12:19:51 -08:00
Steven Silvester
6f4258c1cd
PYTHON-4576 Allow update to supply sort option (#1881) 2024-10-16 16:41:14 -05:00
Jeffrey A. Clark
8034baec90
PYTHON-4834 Add __repr__ to IndexModel, SearchIndexModel (#1909) 2024-10-15 18:45:49 -04:00
Shruti Sridhar
d08fec6342
PYTHON-4550 Add MongoClient.bulk_write API (#1745) 2024-08-06 11:10:01 -07:00
Noah Stapp
a5c0db66a1
PYTHON-4589 - Add async API docs (#1755) 2024-07-30 13:18:40 -07:00
Noah Stapp
ffa6555485
PYTHON-4476 Separate data and IO classes more effectively (#1678) 2024-06-26 10:12:39 -07:00
Noah Stapp
d6bf0e1e78
PYTHON-4264 Async PyMongo Beta (#1629) 2024-06-06 09:01:24 -07:00
Shane Harvey
48d5a46e46
PYTHON-4332 create_search_index only sends "type" field when provided (#1573) 2024-04-08 11:34:51 -07:00
Shane Harvey
f757fe39cc
PYTHON-4297 Allow passing arbitrary options to create_search_index/SearchIndexModel (#1561) 2024-03-26 10:18:54 -07:00
Noah Stapp
17c64a6dd8
PYTHON-4208 [Vector Search GA] Add support for types in search index creation (#1544) 2024-03-15 13:04:47 -07:00
Noah Stapp
ebb94b669e
PYTHON-3457 Easier debugging with standardized logging (#1515)
PYTHON-3458 Add command logging.
PYTHON-3459 Add server selection logging.
PYTHON-3473 Add connection pool logging.
PYTHON-4167 Add documentation and examples.

Co-authored-by: sleepyStick <itsirisho@gmail.com>
2024-02-15 11:35:08 -08:00
Jib
60d0761527
PYTHON-2884: Replaced SON usage in all internal classes and commands (#1426) 2023-12-19 15:42:23 -08:00
Steven Silvester
6537415da7
PYTHON-3605 Move type annotations to parameter list in rendered docs (#1441) 2023-11-27 09:24:00 -06:00
Steven Silvester
7936708d97
PYTHON-4014 Apply QA Suggestions from Scientific Python Library Development Guide (#1414) 2023-11-01 19:37:22 -05:00
Noah Stapp
19c5fcfb74
PYTHON-3757 Bulk write operations don't consider hint field in equality checks (#1402) 2023-10-20 14:08:43 -07:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff (#1399) 2023-10-19 11:56:22 -05:00
Noah Stapp
81c759a3a0
PYTHON-2878 Allow passing dict to sort/create_index/hint (#1389) 2023-10-16 14:36:27 -07:00
Steven Silvester
6f4e617e6d
PYTHON-3905 Use from __future__ import annotations in all files (#1370)
* PYTHON-3905 Use from __future__ import annotations in all files

* cleanup

* cleanup

* cleanup
2023-09-11 10:49:24 -05:00
Iris
e23eb7691e
PYTHON-3811 add types to operations.py (#1313) 2023-07-18 14:28:57 -07:00
Soroush Mahdavi
c6a6ea6066
PYTHON-3511 Remove Python 2 references from the docs (#1161)
Co-authored-by: Nicky Lee <40870742+iceypotato@users.noreply.github.com>
Co-authored-by: DanielZavala11 <89770626+DanielZavala11@users.noreply.github.com>
Co-authored-by: Shane Harvey <shane.harvey@mongodb.com>
2023-07-14 15:30:14 -04:00
Steven Silvester
1a249386cf
PYTHON-3723 Add search index management helpers (#1224) 2023-07-14 09:51:19 -05:00
Iris
de61d1ac8f
PYTHON-3752 add types to bulk.py (#1250) 2023-06-27 13:17:47 -07:00
Iris
eb8013ce02
PYTHON-3740 add types to helpers.py (#1246) 2023-06-22 14:21:04 -07:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 (#1196)
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
Shane Harvey
14e8b011c2
PYTHON-3700 Clean up docs for create_index/drop_indexes (#1201) 2023-05-02 13:45:55 -07:00
Michael Pacheco
3077bbf1f9
PYTHON-3657 Allow index name explicitly set to None (#1182)
Co-authored-by: Michael Pacheco <michael.dias@luizalabs.com>
2023-04-07 11:09:50 -07:00
Steven Silvester
ee2badff75
PYTHON-3524 Support passing list of strings to create_index (#1121) 2022-11-29 05:27:45 -06:00
Julius Park
92e6150d84
PYTHON-3493 Bulk Write InsertOne Should Be Parameter Of Collection Type (#1106) 2022-11-10 14:19:55 -08:00
Steven Silvester
a319075ba7
PYTHON-3197 Update docs.mongodb.com links in source, API & Reference documentation (#926) 2022-04-13 14:11:13 -05:00
Steven Silvester
087950d869
PYTHON-3164 Outdated link from PyMongo docs to community forum (#895) 2022-03-15 15:49:11 -05:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter (#852) 2022-02-09 06:44:28 -06:00
Steven Silvester
dd6c140d43
PYTHON-3060 Add typings to pymongo package (#831) 2022-02-02 21:12:36 -06:00
Shane Harvey
e154642968
Removed references to outdated server versions (#812) 2021-12-07 15:47:28 -08:00
Shane Harvey
93a042f2e8
PYTHON-2235 Remove pymongo.GEOHAYSTACK (#694) 2021-08-06 13:13:23 -07:00
Bernie Hackett
6c2d629006 PYTHON-2133 Remove Py2 compatibility from pymongo 2021-01-19 21:15:20 -08:00
Prashant Mital
de1e29305c
PYTHON-2219 Document hidden index option (#474) 2020-07-29 11:26:50 -07:00
Prashant Mital
b65fdf3f51
PYTHON-2142 Add index hinting support to delete operations 2020-03-26 16:01:33 -07:00
Prashant Mital
1323ef15cb
PYTHON-2036 Expand CRUD API support for index hinting (also PYTHON-2015, PYTHON-2104, PYTHON-2134) 2020-02-25 19:22:25 -08:00
Bernie Hackett
826cc50055 PYTHON-1789 Update indexing docs for wildcard index options 2019-07-09 14:21:54 -07:00
Prashant Mital
aefd02a801
PYTHON-1798 Support pipelines in update commands 2019-06-13 20:26:02 -07:00
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -08:00
Shane Harvey
14ce90906c PYTHON-1296 Support array_filters updates.
Sync crud tests.
2017-09-08 12:23:40 -07:00
Shane Harvey
8eb1aefeff PYTHON-1336 Add collation support to Collection.bulk_write. 2017-08-03 15:21:04 -07:00
Shane Harvey
9468c119a3 PYTHON-1335 Improve __slots__ usage.
__slots__ must be defined in all classes in the hierarchy to avoid __dict__
and __weakref__ overhead.
2017-08-03 14:57:43 -07:00
Luke Lovett
73770db06f Link to createIndexes command from create_indexes documentation.
Fix markup for Collation class in IndexModel documentation.
2017-03-09 16:25:31 -08:00
Luke Lovett
8fdb581c6a PYTHON-1113 - Support collation per operation.
This commit add the pymongo.collation.Collation class and associated enums.  A
collation may be sent with individual write operations when connected to MongoDB
3.4+. Unlike read and write concern, a collation may not be attached to a
database or collection instance.
2016-09-07 13:45:41 -07:00
Hannes Magnusson
bcf0d57df3 PYTHON-990: Fix argument name in notes 2015-11-18 14:12:28 -08:00
aherlihy
9364abe46a PYTHON-990 - Support partial indexes 2015-11-18 14:12:28 -08:00