Expand description
Offline storage module using SQLite
Provides local caching of Jellyfin metadata, download management, and offline mutation queue for sync-back operations.
Re-exports§
pub use db_service::DatabaseService;pub use db_service::RusqliteService;
Modules§
- db_
service - Database service: the single owner of the SQLite database.
- models
- Database model structs
- schema
- Database schema and migrations
Structs§
- Database
- The database: opened once at startup and owned for the life of the app.
Constants§
- BUSY_
TIMEOUT 🔒 - How long a connection retries a locked database before erroring — covers a reader meeting a WAL checkpoint, or the writer meeting a reader’s snapshot.
- READER_
CONNECTIONS 🔒 - How many read-only connections serve queries alongside the writer. Reads are short; a few cover a library page’s parallel fetches plus background work without holding many file handles.