From 04b40b4cf5cf8bd195f8eae56bd6582f06c2869c Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Mon, 4 Aug 2025 20:30:13 -0400 Subject: [PATCH] Impl copy_to for Database impl in JS bindings --- bindings/javascript/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/javascript/src/lib.rs b/bindings/javascript/src/lib.rs index 01a5b3d5e..cec30ef79 100644 --- a/bindings/javascript/src/lib.rs +++ b/bindings/javascript/src/lib.rs @@ -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) + } }