Package pulp :: Package server :: Package db :: Module connection
[hide private]
[frames] | no frames]

Module connection

source code

Functions [hide private]
 
_initialize()
Initialize the connection pool and top-level database for pulp.
source code
 
get_object_db(name, unique_indexes=[], other_indexes=[], order=pymongo.DESCENDING)
Get an object database (read MongoDB Document Collection) for the given name.
source code
Variables [hide private]
  _connection = None
  _database = None
  _log = logging.getLogger(__name__)
Function Details [hide private]

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