Skip to main content

plan

Function plan 

Source
pub fn plan(
    scan: &ScanResult,
    db: &DatabaseDriver,
    config: &ImportConfig,
) -> Result<ImportActionPlan, Box<dyn Error + Send + Sync>>
Expand description

Phase 2 — decide what to do with each candidate from the scan.

SHA-256-hashes the primary member of each candidate and checks the DB for duplicates. Returns an ImportActionPlan with per-candidate decisions.