Model xklb-metadata.db using SQLAlchemy#259
Conversation
Function to get a specific book (which maps to a media entry) for a given caption
|
This PR does not create a blank database anymore. As explained in the description, it does one thing, modeling xklb-metadata.db. It is based on the experimental PR New xb.py: Possible schema to standardize xklb db's + main operations? [need to align w/ Calibre-Web's metadata.db & app.db!] #253. As for the reason behind creating a blank, it was for convenience. A db with all key columns would prevent missing columns error and avoid the need to add them (altering the db). PR Begin with blank xklb-metadata.db from template? [w/ key columns added for Calibre-Web videos] iiab#3808 is not relevant anymore, see PR Add xklb-patch script iiab#3827. |
|
How to test
|
This pull request aims to model the xklb-metadata.db database using SQLAlchemy to manage media, captions, and playlists information. The new models provide a structured way to interact with the database and support operations such as creating, updating, and querying media and related data.