Expand description
Tauri commands for database/storage operations
TRACES: UR-002, UR-011, UR-012, UR-017, UR-019, UR-025, UR-047 | IR-013 | DR-012, DR-013, DR-022, DR-060
Re-exports§
pub use people::*;pub use series_prefs::*;pub use thumbnails::*;
Modules§
- people 🔒
- Person/cast metadata cache commands.
- series_
prefs 🔒 - Per-series preferred audio track commands.
- thumbnails 🔒
- Thumbnail cache and image-URL commands.
Structs§
- Active
Session - Active session info (for session restoration)
- Cached
Item - Cached media item returned to frontend
- Cached
Library - Cached library info returned to frontend
- Credential
Store Wrapper - Wrapper for thread-safe credential store access
- Database
Wrapper - Wrapper for thread-safe database access
- Playback
Progress - Playback progress info
- Security
Status - Security status info
- Server
Info - Server info returned to frontend
- Thumbnail
Cache Wrapper - Wrapper for thread-safe thumbnail cache access
- User
Info - User info returned to frontend
Functions§
- media_
local_ url - A playable URL for a downloaded file on disk.
- row_
to_ 🔒cached_ item - storage_
delete_ server - Delete a server and all associated data
- storage_
delete_ user - Delete a user account and their token from secure storage
- storage_
get_ access_ token - Get user’s access token from secure storage
- storage_
get_ active_ session - Get the active session (user + server + token) for session restoration
- storage_
get_ active_ user - Get the active user for a server
- storage_
get_ item - Get a single cached item by ID
- storage_
get_ items - Get cached items with optional filtering
- storage_
get_ libraries - Get cached libraries for a server
- storage_
get_ path - Get storage directory path (parent directory of the database file)
- storage_
get_ pending_ sync_ count - Get count of pending sync operations for a user
- storage_
get_ playback_ progress - Get playback progress for an item
- storage_
get_ security_ status - Get security status (keyring vs encrypted file fallback)
- storage_
get_ servers - Get all saved servers
- storage_
get_ size - Get database file size in bytes
- storage_
get_ users - Get users for a server
- storage_
init - Initialize the database and run migrations
- storage_
mark_ played - Mark item as played in local database
- storage_
mark_ synced - Mark pending sync as completed for an item
- storage_
save_ item - Save an item to the cache
- storage_
save_ library - Save a library to the cache
- storage_
save_ server - Save a server connection Uses INSERT … ON CONFLICT to avoid triggering CASCADE DELETE on users
- storage_
save_ user - Save a user account (token stored in secure storage, not database)
- storage_
search_ items - Search cached items using FTS
- storage_
set_ active_ user - Set a user as active (and deactivate all other users globally)
- storage_
set_ watched - Set the watched flag locally for an item and everything inside it.
- storage_
toggle_ favorite - Toggle favorite status for an item in local database This updates the is_favorite field and marks it for sync to Jellyfin
- storage_
update_ playback_ context - Update playback progress with context in local database This stores the progress along with playback context (container vs single)
- storage_
update_ playback_ progress - Update playback progress in local database This stores the progress locally for offline access and “continue watching”