weaver.database

Package Contents

weaver.database.LOGGER[source]
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_connection is True, the container must be the application Registry or any container that can retrieve it to accomplish reference reset. Otherwise, any settings container can be provided.

weaver.database.includeme(config)[source]