pub fn show_authored(envs: &[&EnvWrite]) {
    for (i, &env) in envs.iter().enumerate() {
        fresh_reader_test(env.clone(), |txn| {
            txn.prepare("SELECT DISTINCT Header.seq, Header.type, Header.entry_hash FROM Header JOIN SgdOp ON Header.hash = SgdOp.hash WHERE is_authored = 1")
            .unwrap()
            .query_map([], |row| {
                let header_type: String = row.get("type")?;
                let seq: u32 = row.get("seq")?;
                let entry: Option<EntryHash> = row.get("entry_hash")?;
                Ok((header_type, seq, entry))
            })
            .unwrap()
            .for_each(|r|{
                let (header_type, seq, entry) = r.unwrap();
                tracing::debug!(chain = %i, %seq, ?header_type, ?entry);
            });
        });
    }
}
/// Show authored data for each cell environment
Show authored data for each cell environment
Show authored data for each cell environment
pub fn show_authored(envs: &[&EnvWrite]) {
    for (i, &env) in envs.iter().enumerate() {
        fresh_reader_test(env.clone(), |txn| {
            txn.prepare("SELECT DISTINCT Header.seq, Header.type, Header.entry_hash FROM Header JOIN SgdOp ON Header.hash = SgdOp.hash WHERE is_authored = 1")
            .unwrap()
            .query_map([], |row| {
                let header_type: String = row.get("type")?;
                let seq: u32 = row.get("seq")?;
                let entry: Option<EntryHash> = row.get("entry_hash")?;
                Ok((header_type, seq, entry))
            })
            .unwrap()
            .for_each(|r|{
                let (header_type, seq, entry) = r.unwrap();
                tracing::debug!(chain = %i, %seq, ?header_type, ?entry);
            });
        });
    }
}
pub fn show_authored ( envs : & [ & EnvWrite ] ) { for ( i , & env ) in envs . iter ( ) . enumerate ( ) { fresh_reader_test ( env . clone ( ) , | txn | { txn . prepare ( " " ) . unwrap ( ) . query_map ( [ ] , | row | { let header_type : String = row . get ( " " ) ? ; let seq : u32 = row . get ( " " ) ? ; let entry : Option < EntryHash > = row . get ( " " ) ? ; Ok ( ( header_type , seq , entry ) ) } ) . unwrap ( ) . for_each ( | r | { let ( header_type , seq , entry ) = r . unwrap ( ) ; tracing :: debug ! ( chain i seq header_type entry ) ; } ) ; } ) ; } }
Show authored data for each cell environment
Show authored data for each cell environment
envs
&[&EnvWrite]
envs
&[&EnvWrite]