Implement size for JS and WASM storages

This commit is contained in:
Diego Reis
2025-06-17 10:54:19 -03:00
parent af193ef76a
commit 43aa2577cd
2 changed files with 4 additions and 4 deletions

View File

@@ -585,7 +585,7 @@ impl limbo_core::DatabaseStorage for DatabaseFile {
}
fn size(&self) -> limbo_core::Result<u64> {
todo!()
self.file.size()
}
}

View File

@@ -363,12 +363,12 @@ impl limbo_core::DatabaseStorage for DatabaseFile {
Ok(())
}
fn sync(&self, _c: Arc<limbo_core::Completion>) -> Result<()> {
todo!()
fn sync(&self, c: Arc<limbo_core::Completion>) -> Result<()> {
self.file.sync(c)
}
fn size(&self) -> Result<u64> {
todo!()
self.file.size()
}
}