remove dyn DatabaseStorage and replace it with DatabaseFile

This commit is contained in:
pedrocarlo
2025-10-03 12:48:11 -03:00
parent 2efbb2d324
commit e93add6c80
9 changed files with 25 additions and 29 deletions

View File

@@ -180,7 +180,7 @@ fn connect_sync(db: &DatabaseInner) -> napi::Result<()> {
.open_file(&db.path, flags, false)
.map_err(|e| to_generic_error("failed to open file", e))?;
let db_file = Arc::new(DatabaseFile::new(file));
let db_file = DatabaseFile::new(file);
let db_core = turso_core::Database::open_with_flags(
io.clone(),
&db.path,