db

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

class openlp.plugins.songusage.lib.db.SongUsageItem[source]

Bases: openlp.core.lib.db.BaseModel

SongUsageItem model

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

Setup the songusage database connection and initialise the database schema

Parameters:url – The database to setup