get_object_db(name,
unique_indexes=[],
other_indexes=[],
order=pymongo.DESCENDING)
| source code
|
Get an object database (read MongoDB Document Collection) for the
given name. Build in indexes in the given order.
- Parameters:
name (basestring instance or derived instance) - name of the object database to get
unique_indexes (iterable of str's) - unique indexes of the database
other_indexes (iterable of str's) - non-unique indexes of the database
order (either pymongo.ASCENDING or pymongo.DESCENDING) - order of the database indexes
|