Steven Silvester
adf8817df8
PYTHON-4584 Add length option to Cursor.to_list for motor compat ( #1791 )
2024-08-14 13:13:56 -05:00
Steven Silvester
f69d330b25
PYTHON-4654 Clean up Async API to match Motor ( #1789 )
2024-08-13 19:17:45 -05:00
Shane Harvey
4742737876
PYTHON-4643 Fix test_to_list_tailable ( #1783 )
2024-08-09 23:19:15 -07:00
Shane Harvey
da59318327
PYTHON-4610 More robust to_list tests ( #1773 )
2024-08-06 16:29:24 -07:00
Noah Stapp
f7da1172cb
PYTHON-4592 - Synchronize inline examples and docstrings ( #1756 )
2024-08-02 12:02:28 -07:00
Noah Stapp
a3cd7045df
PYTHON-4549 - Optimize Cursor.to_list ( #1749 )
2024-07-30 15:45:30 -07:00
Noah Stapp
105393109e
PYTHON-4533 - Fix failing async tests ( #1739 )
2024-07-17 12:57:55 -07:00
Noah Stapp
f0e025a127
PYTHON-4533 - Convert test/test_cursor.py to async ( #1731 )
2024-07-16 13:55:11 -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
Jib
60d0761527
PYTHON-2884: Replaced SON usage in all internal classes and commands ( #1426 )
2023-12-19 15:42:23 -08:00
Steven Silvester
7936708d97
PYTHON-4014 Apply QA Suggestions from Scientific Python Library Development Guide ( #1414 )
2023-11-01 19:37:22 -05:00
Shane Harvey
58a36e9838
PYTHON-4010 Fix test_timeout_kills_cursor_asynchronously ( #1408 )
2023-10-25 12:25:20 -07:00
Noah Stapp
d82946334e
PYTHON-3953 - PyMongo should send killCursors on MaxTimeMSExpired Error ( #1372 )
2023-10-20 13:42:59 -07:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff ( #1399 )
2023-10-19 11:56:22 -05:00
Noah Stapp
1f7b74f37d
PYTHON-3943 Serverless failure - TestUnifiedRunCursorCommand ( #1374 )
2023-10-19 09:41:21 -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
Steven Silvester
ee2badff75
PYTHON-3524 Support passing list of strings to create_index ( #1121 )
2022-11-29 05:27:45 -06:00
Shane Harvey
79aa5e6757
PYTHON-3516 Improve test EventListener api ( #1114 )
2022-11-14 08:50:08 -08:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting ( #868 )
2022-02-17 06:44:08 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter ( #852 )
2022-02-09 06:44:28 -06:00
Steven Silvester
f4cef37328
PYTHON-3064 Add typings to test package ( #844 )
2022-02-07 19:33:41 -06:00
Steven Silvester
dd6c140d43
PYTHON-3060 Add typings to pymongo package ( #831 )
2022-02-02 21:12:36 -06:00
Shane Harvey
ff3a8b44dc
PYTHON-1864 PYTHON-2931 Spec complaint $readPreference ( #809 )
...
Stop sending $readPreference to standalone servers.
Stop sending $readPreference primary because it's the server default.
Remove outdated secondary_ok flag.
2021-12-13 15:47:34 -08:00
Shane Harvey
e154642968
Removed references to outdated server versions ( #812 )
2021-12-07 15:47:28 -08:00
Shane Harvey
11752ed594
PYTHON-2899 Remove code for MongoDB <= 3.4 ( #729 )
...
Remove unneeded memoryview to bytes conversion.
2021-09-16 16:53:50 -07:00
Bernie Hackett
f64c5aa940
PYTHON-2904 Further language modernization
2021-09-14 12:24:06 -07:00
Shane Harvey
d9e5666336
PYTHON-2875 Require hint with min/max queries ( #712 )
2021-09-08 11:32:14 -07:00
Shane Harvey
e1b068d37a
PYTHON-2525 Remove Collection.count and Cursor.count ( #700 )
2021-08-10 13:52:29 -07:00
Shane Harvey
be47e4ca14
PYTHON-2532 Remove modifiers option for find methods ( #696 )
2021-08-09 10:02:36 -07:00
Shane Harvey
edda903b5b
PYTHON-2711 Remove profile command helpers ( #693 )
2021-08-06 12:54:52 -07:00
Shane Harvey
da49bd88a2
PYTHON-2806 Fix test_aggregate_raw_transaction ( #673 )
2021-07-12 16:54:50 -07:00
Prashant Mital
0e0c4fd944
PYTHON-2389 Add session support to find_raw_batches and aggregate_raw_batches ( #658 )
2021-06-30 19:14:22 -07:00
Prashant Mital
b69d00d21b
PYTHON-2734 Document that find_raw_batches now sends user-specified R… ( #634 )
...
* PYTHON-2734 Document that find_raw_batches now sends user-specified ReadConcern to the server instead of raising ConfigurationError
* fix
* fix2
* fix 3
2021-06-08 14:13:43 -07:00
Prashant Mital
209d5009e6
PYTHON-1860 Use OP_MSG for find/aggregate_raw_batches when supported ( #622 )
2021-05-19 12:05:35 -07:00
Prashant Mital
048ee81836
PYTHON-2719 RawBatchCursor must raise StopIteration instead of returning empty bytes when the cursor contains no results ( #624 )
2021-05-17 13:58:06 -07:00
Shane Harvey
7c1060cfec
PYTHON-1307 Remove SONManipulator APIs ( #557 )
2021-01-25 16:22:00 -08:00
Bernie Hackett
521f7b9af4
PYTHON-2133 Fix up docs
...
And finish deleting python 2 specific code.
2021-01-21 15:49:23 -08:00
Bernie Hackett
a72e8b8823
PYTHON-2133 Remove py2 support from test
...
Also delete bson/py3compat.py
2021-01-20 09:40:36 -08:00
Shane Harvey
719b025d11
PYTHON-2254 Fix Cursor.clone with various options
...
This change adds support for cloning cursors with: "empty", "show_record_id",
"return_key", "allow_disk_use", "snapshot", and "exhaust".
2020-06-05 12:17:53 -07:00
Shane Harvey
c04a43396c
PYTHON-2130 Note that $where does not support Code with scope in MongoDB 4.4+
2020-03-09 20:27:40 -07:00
Prashant Mital
651aa6aa98
PYTHON-2035: support for allowDiskUse in find() commands
2020-02-25 19:24:10 -08:00
Shane Harvey
dc692e4d82
PYTHON-2130 Skip failing $where test on 4.4
2020-02-19 10:56:51 -08:00
Shane Harvey
228f716570
PYTHON-2059 Do not send readPreference with OP_MSG getMore commands
2019-12-03 12:29:01 -08:00
Shane Harvey
f588412b67
PYTHON-1842 Implement Connection Monitoring and Pooling spec
2019-06-13 15:50:49 -07:00
Arthur Darcet
876db9939e
PYTHON-1867 Fix noisy AttributeError in Cursor.__del__ ( #421 )
2019-06-12 16:45:52 -07:00
Shane Harvey
ea8941ef5d
PYTHON-1811 Deprecate running min/max queries without hint
...
Starting in MongoDB 4.2 a hint will be required when using min/max.
2019-04-16 14:00:56 -07:00
Shane Harvey
4169a04821
PYTHON-1786 Send comment with Cursor.count and Cursor.distinct
2019-03-22 17:01:39 -07:00
Prashant Mital
1b0b17450a
PYTHON-1786 Skip test_cursor.TestCursor.test_comment until SERVER-40270 is resolved
2019-03-22 10:25:15 -07:00
Marek Skalický
51119f09ee
PYTHON-1706 Fix issues found by coverity pt. 1 ( #377 )
2018-12-14 14:51:34 -08:00