Shane Harvey
ecc852c322
PYTHON-1673 Mongos pinning for sharded transactions
...
In a sharded transaction, a session is pinned to the mongos server
selected for the initial command. All subsequent commands in the same
transaction are routed to the pinned mongos server.
2018-12-06 15:28:58 -08:00
Shane Harvey
4f3b6467ab
PYTHON-1598 Fix transaction write concern inheritance
2018-06-26 12:07:12 -04:00
Shane Harvey
98e77ba1d2
PYTHON-1483 Prohibit unack'ed writes with explicit sessions
2018-06-25 13:55:50 -05:00
Prashant Mital
96291c88b0
PYTHON-1565 Add helpers and options for Change Streams Follow-on Work ( #355 )
...
PYTHON-1565 Add helpers and options for Change Streams Follow-on Work (#355 )
Add MongoClient.watch() and Database.watch().
Add start_at_operation_time to all watch() helpers.
2018-06-21 12:22:59 -07:00
Bernie Hackett
709b28467f
PYTHON-1586 - Deprecate database_names and collection_names
2018-06-18 10:52:11 -07:00
Bernie Hackett
dbf386c18c
PYTHON-1527 - Fix default writeConcern override
2018-06-04 13:56:06 -07:00
Shane Harvey
ca6a34f51d
PYTHON-1508 SPEC-1097 Resync transaction tests
...
Database.command without a read_preference defaults to the
transaction's or Primary if the session is not in a transaction
Add runCommand transaction tests.
Update count tests.
2018-06-01 16:29:11 -07:00
Prashant Mital
505b6ebc37
PYTHON-1558 Use nameOnly option in list_collection_names and collection_names methods
2018-05-18 14:29:44 -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
Shane Harvey
5a652be993
PYTHON-1508 Add read_preference to TransactionOptions
...
All read operations use the transaction's read preference.
Add transaction read preference spec tests.
Remove write test in test_read_preferences.
2018-05-08 11:38:28 -07:00
Bernie Hackett
984977ba9e
PYTHON-1425 - Implement the auth spec and tests
2018-04-25 10:25:00 -07:00
Shane Harvey
a2937aa8eb
Revert "Pin transactions to a single server address"
...
This reverts commit 25bc0858ff566abfabadeca4a3fea177e9c2697c.
2018-04-16 09:57:45 -04:00
Shane Harvey
656aa1e703
Pin transactions to a single server address
2018-04-16 09:57:45 -04:00
Shane Harvey
cd92850b36
Test changing transaction readPreference
...
Add original readPreference to getMores to simplify code check.
2018-04-16 09:57:45 -04:00
Bernie Hackett
3cd6f32e7c
PYTHON-1509 - Update auth docs for SCRAM-SHA-256
2018-03-30 19:17:35 -07:00
Bernie Hackett
5b9257644f
PYTHON-1464 - Implement SCRAM-SHA-256
2018-03-06 17:54:40 -08: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
6c8f5a2fee
PYTHON-1332 Remove session workaround for createUser.
...
parallel_scan does use implicit sessions.
2017-11-09 19:39:27 -08:00
Bernie Hackett
1e802b3108
PYTHON-1310, PYTHON-1311 - Deprecate add_user and remove_user
...
Also document what to use instead.
2017-11-09 16:58:39 -08:00
Bernie Hackett
036188a832
PYTHON-1385 - Publish command responses in _first_batch
2017-11-09 10:24:18 -08:00
Bernie Hackett
f107c08754
PYTHON-1355 - list_collections improvements
2017-10-26 16:50:19 -07:00
jagrut
8468dfdd41
PYTHON-1355 Implement Collections Enumeration spec. ( #336 )
...
New method Collection.list_collections.
2017-10-24 14:15:01 -07:00
A. Jesse Jiryu Davis
df018e88e2
PYTHON-1332 - Gossip $clusterTime
2017-10-12 09:08:38 -04:00
Shane Harvey
f0b847adb8
PYTHON-1329 Refactor wire protocol message parsing.
...
Use _OpReply class instead of passing bytes around.
Remove unnecessary operation argument to receive message.
Move _first_batch to message.py to avoid circular import.
2017-10-09 15:11:50 -07:00
A. Jesse Jiryu Davis
889a36464f
PYTHON-1332 - Sessions and multi-auth
2017-10-03 17:19:09 -04:00
Shane Harvey
01bbf19462
PYTHON-1299 Remove fallback code from user and index management helpers.
2017-09-29 12:09:24 -07:00
A. Jesse Jiryu Davis
6fa2e4047f
PYTHON-1332 - Send lsid with all commands
2017-09-29 14:52:26 -04:00
A. Jesse Jiryu Davis
c1ec855060
PYTHON-1332 - Send lsid with all commands
2017-09-29 14:52:26 -04:00
A. Jesse Jiryu Davis
6ff5b78d72
PYTHON-1332 - Session for deref and profiling_info
2017-09-11 17:46:44 -04:00
A. Jesse Jiryu Davis
2487e9b71f
PYTHON-1332 - Session param for Collection methods
2017-09-11 17:46:44 -04:00
A. Jesse Jiryu Davis
9327d0c5de
PYTHON-1332 - Pass session to Database methods
2017-09-11 17:38:52 -04:00
A. Jesse Jiryu Davis
2bcddf96f6
PYTHON-1332 - db.command accepts session param
2017-09-11 17:38:52 -04:00
Shane Harvey
74605b73f6
PYTHON-1338 Support change stream API.
2017-09-07 17:12:45 -07:00
A. Jesse Jiryu Davis
b49f1000c1
PYTHON-1299 - Remove MongoDB 2.4 notes from docs
2017-08-24 15:33:12 -04:00
A. Jesse Jiryu Davis
72e61277b2
Deprecate db.authenticate and db.eval
...
PYTHON-1313, and PYTHON-1315.
2017-08-01 16:30:42 -04:00
A. Jesse Jiryu Davis
85e80bcc8b
PYTHON-1308 - Finish deprecating SON manipulators
2017-08-01 10:19:48 -04:00
Bernie Hackett
1600059015
PYTHON-1184 - Don't require X.509 user with MongoDB 3.4
2016-11-16 14:31:14 -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
Luke Lovett
b36a4345fd
PYTHON-1101 - Support sending writeConcern for commands that write.
2016-08-11 14:02:22 -07:00
Bernie Hackett
057429cfca
PYTHON-1023 - Explicitly drop support for MongoDB 2.2
...
We haven't tested against anything older than MongoDB 2.2
in a long timei, but we've never been explicit about what
versions we actually support. As of this commit we are
no longer testing against MongoDB 2.2 either. MongoDB 2.2
reached EOL in February of 2014.
2016-06-15 10:49:00 -07:00
Bernie Hackett
98dcaa2363
PYTHON-1056 - Disallow double quotes in database names
2016-03-02 16:25:50 -05:00
Luke Lovett
e4d3392f90
PYTHON-472 - Add a RawBSONDocument class that decodes its comprising bytes only on-demand.
...
This provides an API for inserting and returning raw BSON.
2015-11-18 15:00:09 -08:00
Luke Lovett
dde4a658b5
PYTHON-981 - Implement ReadConcern.
2015-11-18 14:12:28 -08:00
aherlihy
1a3aeea426
PYTHON-978 - Use find/getMore commands
2015-11-18 12:57:47 -08:00
Bernie Hackett
ec47de71f2
PYTHON-979 - Update currentOp helper for command monitoring
2015-11-18 12:57:47 -08:00
aherlihy
1764aaa6b8
PYTHON-979 - Use currentOp command
2015-11-18 12:57:47 -08:00
A. Jesse Jiryu Davis
dc709127e3
PYTHON-1003 Avoid checking out multiple sockets per thread.
2015-10-16 17:06:06 -04:00
Bernie Hackett
28885b25e8
PYTHON-952 - API improvements
...
This commit implements the following simplifications and improvements:
- The Subscriber ABC has been renamed to CommandListener
- The subscribe function has been renamed to register
- The COMMAND constant has been removed
- The get_subscribers function has been removed
- Command listeners can now be registered per MongoClient instance
instead of just globally
2015-10-09 17:03:51 -07:00
Bernie Hackett
a2a83c005f
PYTHON-952 - Publish events for uses of _first_batch
2015-09-30 10:14:04 -07:00