mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-29 22:14:23 +01:00
Fix truncate impl in JS bindings
This commit is contained in:
@@ -726,6 +726,10 @@ impl turso_core::DatabaseStorage for DatabaseFile {
|
||||
fn size(&self) -> turso_core::Result<u64> {
|
||||
self.file.size()
|
||||
}
|
||||
fn truncate(&self, len: usize, c: turso_core::Completion) -> turso_core::Result<()> {
|
||||
let _ = self.file.truncate(len, c)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user