SQLite lesson data store with schema and C# access layer #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Create the lesson data store at
plugin/Data/LessonStore.cs:SQLite schema:
C# access layer:
Microsoft.Data.Sqlite(already available in Jellyfin's runtime)LessonStore(string dbPath)constructorGetAll(),GetById(string id),GetByGrade(int grade),Upsert(Lesson lesson),Delete(string id)Acceptance
Lessonmodel class with all fields mappedLessonMediamodel for the join table~/.local/share/jellyfin-lessons/lessons.db(configurable)Notes
Use
Microsoft.Data.SqliteNuGet package (add to csproj). Jellyfin already ships this so ExcludeAssets=runtime is fine.The store is shared between the Jellyfin plugin (reads) and the admin UI (writes). Both will use the same DB path.