class watson.db.listeners.Complete[source]

Cleanups the db session at the end of each request.

class watson.db.listeners.Init[source]

Bootstraps watson.db into the event system of watson.

Each session and engine can be retrieved from the container by using sqlalchemy_engine_[name of engine] and sqlalchemy_session_[name of session] respectively.


Load default database commands and append to application config.

_validate_config(config, container)[source]

Validates the config and sets some standard defaults.