Alexandr Morozov
f57569f553
Remove database name necessity in uri connection schema
2013-08-21 13:52:24 +04:00
Ross Lawley
68f760b563
get_db() only assigns the db after authentication ( #257 )
2013-04-30 15:05:41 +00:00
Ross Lawley
c16e6d74e6
Updated connection to use MongoClient ( #262 , #274 )
2013-04-22 15:07:15 +00:00
Ross Lawley
3a6dc77d36
Added no_dereference context manager ( #82 )
...
Reorganised the context_managers as well
2013-01-23 19:05:44 +00:00
Ross Lawley
4f70c27b56
Updated doc string
2013-01-23 16:19:07 +00:00
Ross Lawley
ea46edf50a
Added switch_db method to document instances ( #106 )
2013-01-23 16:07:07 +00:00
Ross Lawley
e5e88d792e
Added SwitchDB context manager ( #106 )
2013-01-23 12:54:14 +00:00
Ross Lawley
9bbd8dbe62
Querysets now return clones and are no longer edit in place
...
Fixes #56
2013-01-04 09:41:08 +00:00
Anthony Nemitz
dd786d6fc4
fix for #494
2012-05-09 02:54:08 -07:00
Ross Lawley
2b8aa6bafc
Fixes read_preference
...
Fixes mongoengine/mongoengine#10
2012-04-27 09:15:05 +01:00
Dan Crosta
0376910f33
refactor get_connection
...
In the previous version, the requested ReadPreference was ignored in the
case that the user specified a MongoDB URI. This rearranges the code to
ensure that only those values which we explicitly parse out of the URI
override values set as keyword arguments.
This leaves open the possibility of conflicts between the URI and the
kwargs -- we should consider whether to raise an exception if, e.g.,
username is specified as a kwarg *and* in the URI.
2012-04-17 19:50:22 -04:00
Ross Lawley
2a34358abc
Updated connection refs #474
2012-03-27 01:47:17 +01:00
Ross Lawley
fd2bb8ea45
Merge pull request #474 from samuelclay/patch-1
...
The port is defaulted in to conn_settings, so discard the port since hos...
2012-03-26 17:17:26 -07:00
Samuel Clay
ad2e119282
The port is defaulted in to conn_settings, so discard the port since hosts_or_uri must be used.
2012-03-26 16:48:37 -07:00
mostlystatic
66d215c9c1
Fix for unknown connection alias error message.
2012-03-24 20:01:40 +00:00
Ross Lawley
c34e79fad9
Fix replicaset connection
2012-03-05 16:15:06 +00:00
Robert Kajic
c61de6540a
Don't ignore kwargs for uri style connections
2012-03-02 15:33:54 +01:00
Robert Kajic
3c7bf50089
Make uri style connections use parameters not specified in the uri, as well as other keyword arguments
2012-03-02 15:33:38 +01:00
Robert Kajic
855933ab2a
uri_dict will have the 'database' key even if the database wasn't present in the uri. We must check it's value as well.
2012-02-24 00:07:57 +01:00
Ross Lawley
ece8d25187
Added replicaset connection support
...
Provide replicaSet=NAME in your connection.
fixes #423
2012-02-17 17:09:48 +00:00
Ross Lawley
a59b518cf2
Updates to imports for future pymongo 2.2
2012-02-17 11:18:25 +00:00
Ross Lawley
0301135f96
Added uri style connection handling
2012-01-30 10:24:45 +00:00
Ross Lawley
9b3899476c
Allow arbitary kwargs to be passed to pymongo
...
Fix pymongo 2.1+ check
Closes #390 closes #378
2011-12-12 09:14:50 +00:00
Ross Lawley
febb3d7e3d
Updated connection - so handles < pymongo 2.1
...
Updated docs
Refs #378
2011-12-09 08:39:50 -08:00
Ross Lawley
83e3c5c7d8
Updated connection for pymongo 2.1 support
...
closes #378
2011-12-09 08:26:39 -08:00
Ross Lawley
5e553ffaf7
Added reconnect back into the syntax
...
forces a disconnect.
2011-11-24 00:59:43 -08:00
Wilson Júnior
fa4b820931
added support for db_alias in FileFields
2011-11-22 13:40:01 -02:00
Ross Lawley
e80144e9f2
Added multidb support
...
No change required to upgrade to multiple databases. Aliases are used
to describe the database and these can be manually registered or fall
through to a default alias using connect.
Made get_connection and get_db first class members of the connection class.
Old style _get_connection and _get_db still supported.
Refs: #84 #87 #93 #215
2011-11-22 08:01:14 -08:00
Ross Lawley
3861103585
Updated connection exception to provide more info on the cause.
...
Fixes #178
2011-05-25 09:36:25 +01:00
Ross Lawley
1781c4638b
Changed how the connection identity key is made
...
Uses the current thread identity as well as the process idenity to form
the key.
Fixes #151
2011-05-18 11:41:23 +01:00
Harry Marr
92471445ec
Fix changing databases
...
Conflicts:
mongoengine/connection.py
mongoengine/queryset.py
2010-10-05 00:46:13 +01:00
Samuel Clay
20dd7562e0
Adding multiprocessing support to mongoengine by using the identity of the process to define the connection. Each 'thread' gets its own pymongo connection.
2010-09-16 17:19:58 -04:00
Florian Schlachter
e2414d8fea
Merge remote branch 'hmarr/master'
2010-02-05 00:36:26 +01:00
Florian Schlachter
24db0d1499
return db-object to allow low-level access from outside via connect()
2010-02-05 00:35:49 +01:00
Harry Marr
89f505bb13
Removed pool_size from connect, minor tidyup
2010-02-04 01:44:52 +00:00
Harry Marr
196f4471be
Made connection lazy
2010-01-06 00:41:56 +00:00
Harry Marr
78d8cc7df8
Started work on user guide
2009-12-21 04:33:36 +00:00
Harry Marr
3017dc78ed
Renamed project to mongoengine
2009-11-21 18:41:10 +00:00