core.settings package¶
Submodules¶
core.settings.config module¶
core.settings.database module¶
Database singleton.
- class core.settings.database.Database(db_name='database.db')¶
Bases:
objectSingleton class for managing the SQLite database connection and setup.
- close() None¶
Closes the database connection if it is open.
- connect() Connection¶
Establishes and returns a connection to the SQLite database.
- get_movie_repository() MovieRepository¶
Returns a MovieRepository intance.
- get_serie_repository() SerieRepository¶
Returns a SerieRepository intance.
- setup() None¶
Creates the necessary tables for movies and series if they do not exist.