Skip to main content

sync_into_knowledge

Function sync_into_knowledge 

Source
pub fn sync_into_knowledge(
    project_root: &str,
    ns: &str,
    name: &str,
    revision: u64,
    doc: &ResearchContextDocumentV1,
) -> Result<(usize, usize), String>
Expand description

Replace this repo’s facts in the project knowledge store with doc. Returns (loaded, removed). A vault served by a replica only loses its old copies (its knowledge is delivered from the replica, §3.5).