happi.backends.mongo_db.MongoBackend¶
-
class
happi.backends.mongo_db.
MongoBackend
(host=None, user=None, pw=None, db=None, collection=None, timeout=None)¶ Abstraction for MongoDB backend
Parameters: - host (str, optional) – Hostname for MongoDB
- user (str, optional) – Username for MongoDB instance
- pw (str, optional) – Password for given username
- host – Host of the MongoDB instance
- db (str, optional) – Database name within the MongoDB instance
- timeout (float, optional) – Time to wait for connection attempt
-
__init__
(host=None, user=None, pw=None, db=None, collection=None, timeout=None)¶
Methods
__init__
([host, user, pw, db, collection, …])delete
(_id)Delete a device instance from the database find
([multiples])Find an instance or instances that matches the search criteria save
(_id, post[, insert])Save information to the database