tables: &mut BTreeMap, wtx: &WriteTransaction, definition: TableDefinition, ) { let stats = wtx.open_table(definition).unwrap().stats().unwrap(); tables.insert( definition.name().into(), TableInfo { tree_height: stats.tree_height(), leaf_pages: stats.leaf_pages(), branch_pages: stats.branch_pages(), stored_bytes: stats.stored_bytes(), metadata_bytes: stats.metadata_bytes(), fragmented_bytes: stats.fragmented_bytes(), }, ); } fn insert_multimap_table_info( tables: &mut BTreeMap, wtx: &WriteTransaction, definition: MultimapTableDefinition, ) { let stats = wtx .open_multimap_table(definition) .unwrap() .stats() .unwrap(); tables.insert( definition.name().into(), TableInfo { tree_height: stats.tree_height(),