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.