diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 06f268f90..b1c8d6439 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -45,7 +45,11 @@ impl Builder { let db = limbo_core::Database::open_file(io, self.path.as_str())?; Ok(Database { inner: db }) } - _ => todo!(), + path => { + let io: Arc = Arc::new(limbo_core::PlatformIO::new()?); + let db = limbo_core::Database::open_file(io, path)?; + Ok(Database { inner: db }) + } } } }