MongoEngine/mongoengine — pull request #106 by metoikos (2012-08-31 13:04:39+00:00)
Title: Switch Database Option

We have multiple databases with same collection names, document types, etc.

In source code at Github, documents use get_db method to choose the database to work on and in that method there is another call to get server connection. Both of these processes works with same parameter that called "alias".

So, we created a method called switch_db to pick right database for collections. Thus you can switch between databases in your data structure.