Bernie Hackett
467ff3f8ee
PYTHON-1238 - Don't send empty writeConcern to user management commands
2017-02-07 11:41:19 -08:00
Bernie Hackett
4d9831f97c
PYTHON-1060 - Remove command document repr from exception messages
2016-03-02 17:05:37 -05:00
Bernie Hackett
0a5ef8de6e
PYTHON-1040 - Add and use client._disconnect
2016-01-15 10:53:24 -08:00
Bernie Hackett
b31399b3b0
PYTHON-980 - Document deprecation of the eval command
2015-08-21 17:24:55 -07:00
Bernie Hackett
283bfa364f
Fix up copyright dates
2015-08-05 19:30:30 -07:00
Bernie Hackett
699b6d3cdf
PYTHON-966 - 3.0 compatibility for read preference options
2015-07-17 12:41:18 -07:00
Bernie Hackett
9b1ac9717f
PYTHON-882 - Backport get_database, get_collection, and with_options.
...
This change comes with a small backward breaking change in the
behavior of client.document_class in exchange for enhanced
configuration flexibility. See changelog.rst for details and
examples.
2015-06-11 14:54:04 -07:00
Bernie Hackett
d70578f650
PYTHON-881 - Backport CodecOptions class from 3.x.
2015-05-26 19:23:40 -07:00
Bernie Hackett
43d26ad73d
Add links in client and connection docs.
2015-05-20 16:06:17 -07:00
aherlihy
c7f1546358
PYTHON-911 - Add database.client alias
2015-05-20 15:52:58 -07:00
Bernie Hackett
9bf46d2bb1
PYTHON-920, PYTHON-921 - Fix metadata helpers with direct connection.
...
With this change metadata helpers (database_names, collection_names,
options, and index_information) no longer require a non-primary read
preference or the slave_okay option to run them against a directly
connected secondary or slave. This was the easiest way to make the
driver behave consistently across MongoDB versions and helpers. This
is also consistent with the server selection spec, though we are not
implementing that spec for PyMongo 2.x.
2015-05-06 09:14:55 -07:00
behackett
b172a1f1a9
PYTHON-913 - Suppress read preference warning under MongoClient.
2015-04-28 15:45:17 -04:00
Bernie Hackett
720a141227
Update MongoDB version references from 2.8 to 3.0.
2015-01-24 09:21:32 -08:00
Bernie Hackett
4ec3f880e1
PYTHON-830 - Fix bad uses of _get_wc_override.
2015-01-24 09:00:25 -08:00
Bernie Hackett
4acb891473
Revert "PYTHON-830 - Fix bad uses of _get_wc_override."
...
This reverts commit 19753f3897 .
2015-01-23 18:18:07 -08:00
Bernie Hackett
19753f3897
PYTHON-830 - Fix bad uses of _get_wc_override.
2015-01-23 14:43:40 -08:00
A. Jesse Jiryu Davis
753356a723
PYTHON-807 Deprecate Database.error() and related methods.
2014-12-19 19:56:02 -05:00
Bernie Hackett
a73e6cfb13
PYTHON-806 - Always use command cursor 'ns' value for OP_GET_MORE
2014-12-18 13:39:38 -08:00
Bernie Hackett
f3b6abf622
PYTHON-796 - Support listCollections and listIndexes command cursors
2014-12-18 12:12:57 -08:00
Bernie Hackett
86e85ce715
PYTHON-795 - Fix password handling for None and the empty string.
2014-12-02 08:45:37 -08:00
Bernie Hackett
807c6797e1
PYTHON-792 - Update create collection and index docs.
2014-11-24 15:42:43 -08:00
A. Jesse Jiryu Davis
0b7b51975e
PYTHON-777 Make copy_database work with SCRAM-SHA-1.
...
See doc/examples/copydb.rst for details.
2014-11-07 17:13:40 -05:00
A. Jesse Jiryu Davis
e3d6510761
PYTHON-764 SCRAM-SHA-1 automatic upgrade / downgrade.
2014-10-23 08:28:09 -04:00
behackett
225cd39187
PYTHON-761 - Use listCollections to helper methods
2014-10-02 16:21:11 -07:00
Bernie Hackett
f8e6d36c8a
PYTHON-493 - Add **kwargs to Database.dereference
2014-09-26 16:18:47 -07:00
Bernie Hackett
70aaf0dc52
PYTHON-739 - Add namespace to command failure message.
2014-09-24 13:55:08 -07:00
Bernie Hackett
0fb2fcfac0
PYTHON-700 - Support subclassing of son manipulators
2014-09-24 09:50:31 -07:00
Luke Lovett
a1f7a5487f
PYTHON-714 Work around localhost exception issues in add_user when connected to MongoDB >= 2.7.1.
2014-07-02 17:11:20 +00:00
A. Jesse Jiryu Davis
e904f014d9
PYTHON-709 insert _id in document after applying non-copying SONManipulators.
2014-06-19 14:50:41 -04:00
Bernie Hackett
04ff22e3c9
Various fixes for auth tests with old mongos versions.
2014-05-02 15:15:08 -07:00
Bernie Hackett
2cc560c671
PYTHON-696 - Fix remove_user for old mongos versions.
2014-05-01 15:41:16 -07:00
Bernie Hackett
b97b85f89a
PYTHON-696 - Fix user and index creation with old mongos versions.
2014-05-01 14:27:29 -07:00
Bernie Hackett
9d47f1cd3d
PYTHON-691 - Fix UserWarning command issues.
...
Don't raise UserWarning for helpers and internal calls to
commands that do not obey read preference.
2014-05-01 09:21:52 -07:00
A. Jesse Jiryu Davis
1361579c82
add_user(name, read_only=True) should update existing user in MongoDB 2.6, PYTHON-643.
2014-02-24 13:53:13 -05:00
Bernie Hackett
a217d30e72
Changes to make cursor testing easier.
2014-02-12 18:11:16 -08:00
Bernie Hackett
cdacc2f4b9
Fix aggregate cursor read preference issues PYTHON-636
...
The cursor returned by aggregate now knows what server
it was created on, allowing it to return getMore results
when the read preference is not PRIMARY.
This also introduces a simplified cursor class for use
with commands that return a cursor id and perhaps an initial
set of results. None of the methods of cursor.Cursor (other
than batch_size) make sense in this case.
2014-02-10 18:55:50 -08:00
A. Jesse Jiryu Davis
2fa1750b07
Update copyright notices and company name.
2014-01-31 09:36:46 -05:00
Amalia Hawkins
1ee488cc6d
PYTHON-577: Warn when a command is redirected to the primary and read preference is not primary
2013-10-31 15:08:37 -07:00
Bernie Hackett
b5bcbcd5d2
Always digest passwords client side PYTHON-552
2013-10-30 14:31:03 -07:00
A. Jesse Jiryu Davis
e4cf504559
Option to not compile BSON regexes. PYTHON-500
...
Add a 'compile_re' parameter to Collection.find, Collection.find_one, and
json_util.loads. If it's False, regular expressions are encoded as a new class,
Regex, instead of passed to re.compile(). This allows PyMongo to handle regular
expressions that don't compile in Python but are valid in other contexts like
MongoDB queries.
2013-10-20 17:18:32 -04:00
Amalia Hawkins
0b8ee683fb
PYTHON-555: support for $out aggregation pipeline operator
2013-10-18 14:00:25 -07:00
Bernie Hackett
5eccdc42d9
Final changes for PYTHON-552
...
- Use default roles when no roles are provided (MongoDB 2.5.3+).
- DeprecationWarning when using read_only or not passing roles (MongoDB 2.5.3+).
- Check for error code 59 in remove_user.
- Roles and read_only are not compatible.
- TypeError -> ValueError for '' as password.
- Better validation all around.
2013-10-17 14:05:48 -07:00
A. Jesse Jiryu Davis
9a7b748cd5
Don't add _id to update documents when manipulate=True. PYTHON-585
2013-10-17 16:36:49 -04:00
behackett
7d8f4cbb7d
Update user manipulation code and tests PYTHON-552
...
Due to server changes:
removeUser -> dropUser
removeUsersFromDatabase -> dropUsersFromDatabase
source -> db
2013-10-07 15:19:02 -07:00
behackett
d45466b7b2
Check for error code 59 in add_user PYTHON-552
2013-09-25 13:19:56 -07:00
hawka
a02e37ba5e
PYTHON-552: Manipulate user objects exclusively via commands for 2.6
2013-09-24 17:30:33 -07:00
hawka
74546ec88d
Adding Support for readPreferenceTags and uuidRepresentation in URI parsing. PYTHON-473
2013-08-30 15:38:34 -04:00
Park Hyunwoo
baf53bee2d
Add optional parameter for pymongo.database.collection_names to ignore system collections
2013-08-16 09:47:21 -07:00
Bernie Hackett
9307c1d56c
Support MONGODB-X509 PYTHON-535
2013-07-25 16:02:07 -07:00
behackett
95c9731d66
Clean up Database.authenticate docs PYTHON-534
...
This change removes the commentary about the admin
database since it no longer applies when using role
based authentication in MongoDB 2.4 and newer.
Consult the MongoDB manual for details.
2013-06-20 12:16:55 -07:00