LocalDataSource
Room operations used by the Home repository for content and pending-sync metadata.
User-scoped lists exclude soft-deleted rows. Pending queries include rows with needsSync set or lastUpdated greater than lastSynced. The stored server timestamp supplies the pull cursor. Writes do not schedule sync; the repository requests it separately.
See also
Functions
Permanently deletes a jetpack from the database.
Retrieves a specific jetpack by its ID.
Observes a user's non-deleted jetpacks, newest edit first.
Returns the largest stored server write time, including soft-deleted rows. This timestamp alone does not establish a complete pull checkpoint.
Retrieves a list of jetpacks for a specific user that need to be synced.
Inserts a new jetpack into the database.
Clears pending flags by ID and sets lastSynced, without checking the uploaded version.
Marks a jetpack as deleted.
Updates an existing jetpack in the database.
Inserts or updates a jetpack in the database.
Upserts (insert or update) jetpacks from a remote source.