watson.db.listeners

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_commands(config)[source]

Load some existing

_validate_config(config)[source]

Validates the config and sets some standard defaults.