Skip to main content

write

Function write 

Source
pub fn write(
    dir: &Path,
    ledgers: &[Ledger],
    mode: Kinds,
) -> Result<Value, String>
Expand description

Writes a segment from consecutive ledgers and publishes it with a manifest. Before writing, the archive is unpacked again and compared with the rows, the indexes are checked by re-encoding the decoded form, and the kinds by parsing. Returns the manifest.