db

The db module provides the database and schema that is the backend for the Alerts plugin.

class openlp.plugins.alerts.lib.db.AlertItem[source]

Bases: openlp.core.lib.db.BaseModel

AlertItem model

openlp.plugins.alerts.lib.db.init_schema(url)[source]

Setup the alerts database connection and initialise the database schema

Parameters:url – The database to setup