weaver.database
Submodules
Package Contents
- weaver.database.get_db(container: weaver.typedefs.AnySettingsContainer, reset_connection: bool = False) mongodb.MongoDatabase[source]
Obtains the database connection from configured application settings.
If
reset_connectionisTrue, thecontainermust be the applicationRegistryor any container that can retrieve it to accomplish reference reset. Otherwise, any settings container can be provided.