mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 20:14:21 +01:00
Merge 'Enable local file connection in Rust binding' from 南宫茜
It's so weird that other bindings can open local file but Rust binding itself cannot. Reviewed-by: Pere Diaz Bou <pere-altea@homail.com> Closes #1095
This commit is contained in:
@@ -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<dyn limbo_core::IO> = Arc::new(limbo_core::PlatformIO::new()?);
|
||||
let db = limbo_core::Database::open_file(io, path)?;
|
||||
Ok(Database { inner: db })
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user