Skip to main content

run_import_with_progress

Function run_import_with_progress 

Source
pub fn run_import_with_progress(
    db_dir: &Path,
    nodes_csv: Option<&Path>,
    rels_csv: Option<&Path>,
    opts: &ImportOptions,
    on_batch: &mut dyn FnMut(&BatchProgress),
) -> Result<ImportReport, CliError>
Expand description

run_import, calling on_batch after every batch that committed.