Commit Graph

154 Commits

Author SHA1 Message Date
Prashant Mital
4cdd3450ac
PYTHON-1670: Implement Unified URI Options (#386) 2019-01-17 10:02:37 -08:00
Prashant Mital
bc26c0db69
PYTHON-1577 Allow applications to register a custom server selector (#371)
PYTHON-1577 Allow applications to register a custom server selector
2018-08-30 17:33:03 -05:00
Shane Harvey
4f3b6467ab PYTHON-1598 Fix transaction write concern inheritance 2018-06-26 12:07:12 -04:00
A. Jesse Jiryu Davis
c63c068611 PYTHON-1564 Add DriverInfo to handshake metadata
Allow drivers that wrap PyMongo to add their info to the handshake
metadata, using a "driver" option like:

  MongoClient(driver=DriverInfo("MyDriver", "1.2.3"))

The DriverInfo is appended to PyMongo's own metadata.
2018-06-03 10:04:45 -04:00
Bernie Hackett
335cb97a34 PYTHON-1278, PYTHON-1553 - Support OP_COMPRESSED 2018-05-22 11:44:21 -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
73478106eb PYTHON-1463 - Implement read / write concern spec 2018-04-06 12:55:09 -07:00
Bernie Hackett
ba7c95a9df PYTHON-1462 - Import ABCs from collections.abc 2018-02-12 19:42:44 -08:00
Bernie Hackett
507f954ed4 Update copyright dates 2017-12-01 17:23:39 -08:00
Shane Harvey
e554d6116c PYTHON-1419 Call endSessions on MongoClient.close. 2017-11-28 14:26:25 -08:00
Bernie Hackett
b878ed60ca PYTHON-1409 - Improve server compatibility error messages 2017-11-13 15:03:47 -08:00
Shane Harvey
8b1aa3aafa PYTHON-1339 Retryable single-statement writes.
Add retryWrites MongoClient and URI setting.
Retry once for supported single-statement write operations including:
insert_one, update_one, delete_one, find_one_and_update, find_one_and_replace,
find_one_and_delete, update and remove with multi=False, and find_and_modify.
2017-10-30 14:23:16 -04:00
A. Jesse Jiryu Davis
df018e88e2 PYTHON-1332 - Gossip $clusterTime 2017-10-12 09:08:38 -04:00
Shane Harvey
01bbf19462 PYTHON-1299 Remove fallback code from user and index management helpers. 2017-09-29 12:09:24 -07:00
Shane Harvey
14ce90906c PYTHON-1296 Support array_filters updates.
Sync crud tests.
2017-09-08 12:23:40 -07:00
Shane Harvey
74605b73f6 PYTHON-1338 Support change stream API. 2017-09-07 17:12:45 -07:00
A. Jesse Jiryu Davis
aa03551725 PYTHON-1299 - Drop MongoDB 2.4
Bump minimum supported wire version to 2 and sync SDAM tests from specs
repo. Don't remove actual wire protocol code yet or remove 2.4 version
checks from test code.
2017-08-24 08:14:36 -04:00
Shane Harvey
b7893b7ec4 3.5 changelog and documentation fixes. 2017-08-08 09:32:09 -07:00
A. Jesse Jiryu Davis
473e25b2f6 PYTHON-1327 - Handle null username or password 2017-08-02 16:06:23 -04:00
A. Jesse Jiryu Davis
031559ebc5 PYTHON-1327 - Username and password kwargs
MongoClient now accepts username and password parameters. Before, the
only way to pass them was in the URI.
2017-07-28 15:20:23 -04:00
Michael Elovskikh
9f07ff35a1 PYTHON-1334 Don't change readpreference value at uri parsing (#325) 2017-07-25 17:43:51 -07:00
A. Jesse Jiryu Davis
91f2f973af PYTHON-1192 - Minimum maxStalenessSeconds is 90.
Revert code to parse "idleWritePeriodMillis" from ismaster, and revert
changes that allowed maxStalenessSeconds to be a float.
2016-11-22 13:19:34 -05:00
A. Jesse Jiryu Davis
87708a2f96 PYTHON-1169 - Default maxStalenessSeconds is -1. 2016-11-08 21:52:04 -05:00
A. Jesse Jiryu Davis
497e316d34 PYTHON-1104 - Support idleWritePeriodMS. 2016-11-08 21:52:04 -05:00
A. Jesse Jiryu Davis
f4922da97c PYTHON-1104 - maxStalenessMS -> maxStalenessSeconds. 2016-11-08 21:52:04 -05:00
Shane Harvey
1f30c3ba99 PYTHON-1152 Update common.MAX_SUPPORTED_WIRE_VERSION for MongoDB 3.4 2016-10-13 11:29:32 -07:00
oxymor0n
36885e0aa1 address @llvtt comments
allow `connect` to be specified via URI parameters
import in alphabetical order
2016-08-01 14:43:35 -04:00
oxymor0n
c073b920b0 add validators for unicode_decode_error_handler and tzinfo 2016-08-01 14:43:18 -04:00
Luke Lovett
c9bbfa7ace PYTHON-1119 - Implement the client metadata capture specification. 2016-07-26 10:35:55 -07:00
A. Jesse Jiryu Davis
5933730588 PYTHON-1104 Implement maxStalenessMS. 2016-07-22 14:12:40 -04:00
A. Jesse Jiryu Davis
a2f97f92a4 PYTHON-1105 Configurable heartbeatFrequencyMS. 2016-07-08 16:30:56 -04:00
aherlihy
d5082fe45c Remove event_listeners from URI_VALIDATORS 2016-06-14 17:58:59 +02:00
aherlihy
d98a745700 PYTHON-1067 - Implement SDAM Monitoring 2016-06-14 15:20:19 +02:00
aherlihy
10608144d6 PYTHON-658 - Support minPoolSize, maxIdleTimeMS 2016-06-14 14:37:06 +02:00
Bernie Hackett
0abfba6155 PYTHON-750 - Kerberos SSPI support for Windows 2016-05-26 16:23:53 -07:00
Bernie Hackett
db1dea6f73 PYTHON-1042 - Support client certificate passphrase 2016-05-26 14:59:42 -07:00
Bernie Hackett
d7abe6e7be PYTHON-1073 - Support certificate revocation lists 2016-05-24 11:47:49 -07:00
Bernie Hackett
1413bb0077 PYTHON-1087 - Fix __repr__ handling of *TimeoutMS=None 2016-05-19 15:19:27 -07:00
Bernie Hackett
241a898813 PYTHON-1059 - Make kwarg only options unknown to the URI parser 2016-03-09 12:14:18 -08:00
Sergey Ninua
1d81aea087 allow connect option to be passed as string 2016-03-02 15:43:07 -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
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
aherlihy
193915e636 PYTHON-959 - Connection string spec compliance. 2015-08-06 13:14:31 -04:00
aherlihy
6b644054b7 PYTHON-860 - Ignore unauthorized errors for index creation in GridFs 2015-07-21 12:33:34 -04:00
Luke Lovett
5f14e1b9bf PYTHON-928 - Enhance __repr__ of MongoClient with other options passed in to the constructor. 2015-07-17 14:49:36 -07:00
Len Buckens
64009228f8 PYTHON-934 - allow ssl_match_hostname option to be passed as string 2015-06-15 13:16:30 -07:00
aherlihy
1e7ebb1792 PYTHON-933 - "maxPoolSize=0" allowed, causes hang. 2015-06-08 14:23:00 -07:00
Bernie Hackett
f506d8b69f PYTHON-915 - Accept 0 for localThresholdMS. 2015-05-08 08:34:15 -07:00
Bernie Hackett
aec685b374 Fix up copyright dates. 2015-03-25 11:55:02 -07:00