Skip to main content

get_sync_status

Function get_sync_status 

Source
pub fn get_sync_status(
    storage: &SqliteStorage,
    export_dir: &Path,
    project_path: &str,
) -> SyncResult<SyncStatus>
Expand description

Get the current sync status for a project.

This queries the database for dirty record counts (filtered by project) and checks the export directory for existing JSONL files.

§Arguments

  • storage - Database storage
  • export_dir - Directory where export files are stored
  • project_path - Project path to filter records by

§Errors

Returns an error if database queries fail.