async fn print_meta() -> anyhow::Result<()> {
    let db = get_sled_db();

    let tree_names = db.tree_names();
    for n in tree_names.iter() {
        let name = String::from_utf8(n.to_vec())?;

        let tree = db.open_tree(&name)?;
        for x in tree.iter() {
            let kv = x?;
            let kv = vec![kv.0.to_vec(), kv.1.to_vec()];

            let line = exported_line_to_json(&name, &kv)?;
            println!("{}", line);
        }
    }

    Ok(())
}
/// Print the entire sled db.
///
/// The output encodes every key-value into one line:
/// `[sled_tree_name, subtree_prefix(u8), subtree_prefix(str), key, value]`
/// E.g.:
/// `["global-local-kv/state_machine/0",7,"sledks::Sequences","databases",1]`
Print the entire sled db.
Print the entire sled db .
async fn print_meta() -> anyhow::Result<()> {
    let db = get_sled_db();
    let tree_names = db.tree_names();
    for n in tree_names.iter() {
        let name = String::from_utf8(n.to_vec())?;
        let tree = db.open_tree(&name)?;
        for x in tree.iter() {
            let kv = x?;
            let kv = vec![kv.0.to_vec(), kv.1.to_vec()];
            let line = exported_line_to_json(&name, &kv)?;
            println!("{}", line);
        }
    }
    Ok(())
}
async fn print_meta ( ) -> anyhow :: Result < ( ) > { let db = get_sled_db ( ) ; let tree_names = db . tree_names ( ) ; for n in tree_names . iter ( ) { let name = String :: from_utf8 ( n . to_vec ( ) ) ? ; let tree = db . open_tree ( & name ) ? ; for x in tree . iter ( ) { let kv = x ? ; let kv = vec ! [ kv 0 to_vec ( ) kv 1 to_vec ( ) ] ; let line = exported_line_to_json ( & name , & kv ) ? ; println ! ( " " line ) ; } } Ok ( ( ) ) }
Print the entire sled db.
Print the entire sled db .