Impl copy_to for Database impl in JS bindings

This commit is contained in:
PThorpe92
2025-08-04 20:30:13 -04:00
parent f75eaee886
commit 04b40b4cf5

View File

@@ -516,4 +516,7 @@ impl turso_core::DatabaseStorage for DatabaseFile {
let c = self.file.truncate(len, c)?;
Ok(c)
}
fn copy_to(&self, io: &dyn turso_core::IO, path: &str) -> turso_core::Result<()> {
self.file.copy_to(io, path)
}
}