weaver.database.mongodb
¶
Module Contents¶
-
class
weaver.database.mongodb.
MongoDatabase
(: weaver.typedefs.AnySettingsContainer, container)[source]¶ Return the unique identifier of db type matching settings.
-
get_store
(self: Union[str, Type[weaver.store.base.StoreInterface], AnyMongodbStoreType], store_type: Any, *store_args: Any, **store_kwargs) → AnyMongodbStore[source]¶ Retrieve a store from the database.
- Parameters
store_type – type of the store to retrieve/create.
store_args – additional arguments to pass down to the store.
store_kwargs – additional keyword arguments to pass down to the store.
-