Introduction
The mongo database style interacts with a MongoDB database.
Security authentication options still need to be implemented.
Each iprPy record style corresponds to a collection in the mongo database.
The mongo documents have two root elements “name” and “content” corresponding to the record object’s name and content. Thus, mongo queries on fields inside the records need to start with “content”, e.g. “content.content-root.subroot”.
Additional dependencies
A MongoDB server (local or remote) to connect to.
Initialization arguments
host: the mongo host to connect to. Default value is ‘localhost’.
port: the connection port to use. Default value is 27017.
database: the name of the database inside the mongo instance. Default value is ‘iprPy’.
**kwargs: any extra keyword arguments needed to initialize a pymongo.MongoClient object.