export_from_snapshot

Function export_from_snapshot 

Source
pub fn export_from_snapshot(
    persy_p: &Snapshot,
) -> EIRes<Box<impl Iterator<Item = Info>>>
Expand description

Export the data from a snapshot of persy storage with a custom format

ยงExample

use persy::{Persy, Config};
use persy_expimp::export_from_snapshot;
use std::vec::Vec;
let persy = Persy::open("file.persy", Config::new())?;
let snapshot = persy.snapshot()?;
for info in export_from_snapshot(&snapshot)? {
    // Custom logic
}