This commit is contained in:
Nathan Rashleigh committed 2025-09-23 21:17:18 +10:00
1 parent 4d6fe96a93
commit a8b407e414
1 file changed
+3 -2
+3 -2
View File
@@ -57,8 +57,9 @@ const PAGE_SIZE: u16 = 4096;
impl Database {
pub fn export(self, path: &Path) -> Result<(), binrw::Error> {
let pages = Page::from_rows(PageType::Tracks, 1, PAGE_SIZE, self.tracks.values().cloned().map(Row::Track))?;
println!("{:?}", pages);
let pages = Table::from_rows(PageType::Tracks, 1, PAGE_SIZE, self.tracks.values().cloned().map(Row::Track))?;
println!("{:?}", pages.len());
println!("{:?}", pages.last());
Ok(())
}
// pub fn export(self, path: &Path) -> std::io::Result<()> {