Database Handler

The db handler provides various utilites relating to the app database (and perhaps others).

This handler exists mostly in keeping with the pattern, since it allows customization to happen in a straightforward way. However in practice, as of writing the db handler does not “do” much so you may never need to interact with it directly.

The base class and default db handler is wuttjamaican.db.handler.DatabaseHandler.

The app handler is responsible for creating the db handler via get_db_handler():

app = config.get_app()
db = app.get_db_handler()