pub fn merge_database_from_file(
conn: &mut Connection,
path: &Path,
secret_filter: Option<&RegexSet>,
watermark: Option<i64>,
) -> Result<MergeStats>Expand description
Merge history from a database file into conn, with an optional secret
filter (rows whose command matches are skipped and counted) and an
optional incremental-sync watermark (skip rows in the source whose
id <= watermark). The unsealed-row update always scans the whole source
since seal info may sit at any id, watermark or not.
The source is attached read-only and never written to: peers in a shared
directory may belong to other machines, be on read-only media, or not be
pxh databases at all. Older schemas (pre-machine_id) are read as-is.