This commit is contained in:
Pere Diaz Bou
2024-09-22 17:45:39 +02:00
parent 0a313c6486
commit c0e51c4ca6
16 changed files with 405 additions and 88 deletions

View File

@@ -1,5 +1,6 @@
use limbo_core::Database;
use std::path::PathBuf;
use std::rc::Rc;
use std::sync::Arc;
use tempfile::TempDir;
@@ -23,7 +24,7 @@ impl TempDatabase {
Self { path, io }
}
pub fn connect_limbo(&self) -> limbo_core::Connection {
pub fn connect_limbo(&self) -> Rc<limbo_core::Connection> {
let db = Database::open_file(self.io.clone(), self.path.to_str().unwrap()).unwrap();
db.connect()