Commit Graph

179 Commits

Author SHA1 Message Date
Mike Dirolf
ec9fc802dd alias Connection as pymongo.Connection 2009-05-15 11:57:31 -04:00
Mike Dirolf
770c851829 raise an exception rather than silently overflowing 2009-05-14 16:59:08 -04:00
Mike Dirolf
0797c341ff ensure_index 2009-05-14 15:50:31 -04:00
Eliot Horowitz
a9787be342 change one test that only works with java 2009-05-08 16:57:17 -04:00
Mike Dirolf
74bf4122e0 make Connection paramater defaults configurable with class attributes: thanks to kless for the original implementation of this 2009-05-07 12:27:08 -04:00
Mike Dirolf
854344c392 add Collection.group 2009-04-27 13:38:49 -04:00
Mike Dirolf
4aab17c305 update tests for auto create index on _id 2009-04-22 15:20:25 -04:00
Mike Dirolf
8c41933f20 support for decoding data_timestamp 2009-04-22 12:03:25 -04:00
Mike Dirolf
692f206ea7 add unique option when creating an index 2009-04-21 11:56:44 -04:00
Mike Dirolf
1afab870df send size to create_collection as a float, not a long 2009-04-15 13:58:03 -04:00
Mike Dirolf
a4b642b7ab don't manipulate documents being updated by default 2009-04-15 10:43:17 -04:00
Mike Dirolf
6841005a7d adding last_status method to Database instances 2009-04-13 13:57:33 -04:00
Mike Dirolf
1d6e11f5a3 to_dict for SON 2009-03-18 17:39:43 -04:00
Mike Dirolf
157e032892 handle dbrefs in c bson module as well 2009-03-18 11:53:03 -04:00
Mike Dirolf
8578b20e64 handle dbrefs in the bson encoder rather than as a layer on top 2009-03-18 10:31:47 -04:00
Mike Dirolf
9eebac461e add a test for what marc has been trying to do 2009-03-17 13:18:08 -04:00
Mike Dirolf
7ddbdc5442 add basic auto-ref support 2009-03-17 13:04:50 -04:00
Mike Dirolf
055bd7f31c test that already passes 2009-03-17 11:26:31 -04:00
Mike Dirolf
943b9e1328 test dereferencing a non-objectid dbref 2009-03-17 11:00:07 -04:00
Mike Dirolf
708f12a33a _id can be anything in DBRef instance 2009-03-17 10:43:25 -04:00
Mike Dirolf
b57d8c2d60 SONManipulator for converting between DBRefs and the corresponding embedded objects 2009-03-17 10:10:54 -04:00
Mike Dirolf
396d4ded9d make collection, id properties of dbref 2009-03-12 13:45:07 -04:00
Mike Dirolf
3262cfc215 make subtype a property instead of a regular method 2009-03-12 11:52:52 -04:00
Mike Dirolf
06f1c92637 test that already passes 2009-03-12 11:47:09 -04:00
Mike Dirolf
6ca697554d support for scopes in where clauses. and getter for code_w_scope 2009-03-12 11:25:00 -04:00
Mike Dirolf
5eda427cbc use code_w_scope instead of code for eval. change Code class to support scopes 2009-03-12 11:16:03 -04:00
Mike Dirolf
fdb9a94db6 fix some tests 2009-03-09 14:22:21 -04:00
Mike Dirolf
98dd6765bb test killing cursors on master-slave 2009-03-09 14:02:51 -04:00
Mike Dirolf
33ef246812 towards master-slave support 2009-03-09 11:47:54 -04:00
Mike Dirolf
9edafa2167 make sure we're using utc 2009-02-25 17:42:03 -05:00
Mike Dirolf
33e563147e use cursorInfo command instead of intr collection 2009-02-23 18:08:52 -05:00
Mike Dirolf
f7a1349f74 oops -a by accident
This reverts commit 28d2d0cbb0.
2009-02-23 18:05:47 -05:00
Mike Dirolf
28d2d0cbb0 use cursorInfo command instead of intr collection 2009-02-23 18:05:20 -05:00
Mike Dirolf
7bbb4a5133 python 2.3 support
mostly not using unittest.assertTrue and assertFalse.
also not using decorator syntax, and some missing built-ins (sorted, etc.)
2009-02-20 14:35:21 -05:00
Mike Dirolf
f167101a3e changes to support python 2.4 2009-02-20 10:38:17 -05:00
Mike Dirolf
781b956394 make test independent of time it took to do explain 2009-02-20 09:14:57 -05:00
Mike Dirolf
1e0b09a432 support for long -> bson int in C encoder 2009-02-19 13:04:56 -05:00
Mike Dirolf
db25c8b0dd url_encode and url_decode for ObjectIds 2009-02-18 14:46:09 -05:00
Mike Dirolf
376d6e0485 enable test 2009-02-18 13:34:09 -05:00
Mike Dirolf
c1bcc668ca add md5 to gridfs files. one commented out test until the filemd5 command gets fixed 2009-02-18 12:03:58 -05:00
Mike Dirolf
724342623d quick test for creating an index on binary data - jeff wants to be sure this works 2009-02-17 11:05:29 -05:00
Mike Dirolf
fc08abcbfa make sure we fail fast on when we get a string that's not utf-8 2009-02-17 10:53:03 -05:00
Mike Dirolf
17788927fd update test to keep up w/ change to error message 2009-02-12 15:30:04 -05:00
Mike Dirolf
8f56e2c227 use kwargs instead of options dict for pooling options 2009-02-12 15:20:41 -05:00
Mike Dirolf
35eaef2a1a comment out non-deterministic tests 2009-02-12 14:51:16 -05:00
Mike Dirolf
e9e8a22431 increase test margins 2009-02-12 14:20:33 -05:00
Mike Dirolf
c781322ad0 compatible with python 2.5 2009-02-12 13:06:26 -05:00
Mike Dirolf
fdd451e243 multi-threaded pooling test 2009-02-12 12:17:40 -05:00
Mike Dirolf
48275e70da test for a paired connection w/ connection pooling, some fixes 2009-02-12 12:17:39 -05:00
Mike Dirolf
802963df1a TODO. note about pooling w/ auth 2009-02-12 12:17:21 -05:00