module documentation

Defines the database used by Things providing data to the gallery.

Class GalleryEntry A class to define gallery entries and their table.
Class GalleryEntryModel The data required for each entry in the gallery.
Class OFMGalleryBase Create a base class for all ofm gallery databases.
Class OFMGalleryDBEngine A database engine that can be subclassed for different Gallery providers.
Constant GALLERY_DB_NAME Undocumented
Constant GALLERY_DB_SCHEMA_VERSION Undocumented
Constant LOGGER Undocumented
Function _new_gallery_db_engine Create a new database engine with the correct schema for the Gallery.
GALLERY_DB_NAME: str = (source)

Undocumented

Value
'gallery.db'
GALLERY_DB_SCHEMA_VERSION: int = (source)

Undocumented

Value
1

Undocumented

Value
logging.getLogger(__name__)
def _new_gallery_db_engine(db_file: str) -> sa.Engine: (source)

Create a new database engine with the correct schema for the Gallery.

Note that no migration yet exists as this is on the first schema.