Skip to main content

Module ingest

Module ingest 

Source

Structs§

IngestStats

Enums§

FileOutcome
What a watcher-triggered ingest did with one file. Write failures are returned as errors, without the path, so they can be reported as health.

Constants§

SOURCES
Every adapter an ingest can run, by the source name it stores.

Functions§

adapters_for
The adapters an ingest of source runs: the one named, or all of them when no source is given. An unknown name is the caller’s mistake and is answered with a message listing the sources that exist.
capture_transcript
ingest_file
ingest_memory_file
ingest_with_adapters
legacy_file_hash
The hash ingest_log held before SHA-256: std’s DefaultHasher, whose output is not stable across Rust releases, so it is only ever compared against rows written by an older binary.
reingest
Re-runs every adapter after forgetting which files it saw, except files ingested before raw ids became deterministic: re-parsing one would bring back, under new ids, raws that were deleted under their old random ones. Returns the number of forgotten files with the ingest stats.
reingest_with_adapters
run_ingest