Commit Graph

211 Commits

Author SHA1 Message Date
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
Bernie Hackett
e6b0f3847d PYTHON-1581 - Deprecate Collection/Cursor count 2018-06-18 10:50:26 -07:00
Shane Harvey
a15c8283dc PYTHON-1584 Skip maxScan tests on 4.1+ 2018-06-12 10:20:49 -07:00
Nikolai Matiushev
72cab9356d PYTHON-1556 Fix compatibility issues with Python >= 3.6 (#352)
Use raw strings to avoid invalid escape sequence warnings in Python >= 3.6
2018-05-15 15:20:03 -07:00
Bernie Hackett
f847be3fcb PYTHON-1502 - Deprecate the snapshot cursor option 2018-03-22 08:47:34 -07:00
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -08:00
Shane Harvey
2a05236f61 PYTHON-1332 Only gossip cluster time on >= 3.6.
Do not add readConcern to explain.
Test explain with collation.
2017-11-30 14:53:14 -08:00
Shane Harvey
49cee292cc PYTHON-1408 Cursor iteration should complete when another thread closes the cursor.
Closing a cursor should not raise an error when killCursors fails.
2017-11-13 13:08:38 -08:00
Bernie Hackett
7ab179067b PYTHON-1299 - More test cleanup 2017-11-09 18:53:29 -08:00
Bernie Hackett
1227f5544d PYTHON-1280 - Support maxTimeMS in index management methods 2017-11-09 15:57:50 -08:00
Shane Harvey
3e778334e7 PYTHON-1299 Remove test logic for MongoDB <2.6. 2017-09-29 12:09:24 -07:00
A. Jesse Jiryu Davis
3cba982db9 PYTHON-1332 - Test lsid with all commands 2017-09-29 14:52:26 -04:00
caosiyang
db57f671dc PYTHON-1371 - The tailable cursor cannot get document through __getitem__(index) on MongoDB v3.4
Fix issue and add test case.
2017-09-08 11:45:11 -07:00
A. Jesse Jiryu Davis
cfb30e91c0 PYTHON-1362 - Add find/aggregate_raw_batches()
Rename find_raw to find_raw_batches, and add aggregate_raw_batches.
Rename RawBSONCursor and RawBSONCommandCursor to RawBatchCursor and
RawBatchCommandCursor.
2017-08-25 15:26:16 -04:00
A. Jesse Jiryu Davis
4957589024 PYTHON-1362 - Add Collection.find_raw()
Instead of passing raw_batches=True to find(), make a separate method.
2017-08-25 15:24:46 -04:00
A. Jesse Jiryu Davis
a6183a5dc5 Style in test_cursor.py 2017-08-25 15:24:16 -04:00
A. Jesse Jiryu Davis
0534596dc5 PYTHON-1362 - Add raw_batches option to find() 2017-08-25 15:24:16 -04:00
Shane Harvey
61ad5b223a PYTHON-1353 Fix failing CommandCursor test on 2.4. 2017-08-17 14:23:57 -07:00
Shane Harvey
b00584b892 PYTHON-1353 Kill cursors synchronously in CommandCursor.close. 2017-08-15 14:58:44 -07:00
A. Jesse Jiryu Davis
7b1cbace17 PYTHON-1217 - Deprecate the "modifiers" find option 2017-07-24 12:40:15 -04:00