Skip to content

Commit

Permalink
Add workaround for apps that do not like bare SQLite filenames.
Browse files Browse the repository at this point in the history
  • Loading branch information
losfair committed Aug 31, 2022
1 parent 502a526 commit 75950c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mvsqlite/src/vfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ impl Vfs for MultiVersionVfs {
return Ok(Box::new(TempFile::new()));
}

// Bindings like Sequelize do not like bare SQLite filenames.
// So let's allow a fake "root" path!
let db = db.trim_start_matches("/");

let conn = self.inner.open(db)?;
Ok(Box::new(Connection {
io: self.io.clone(),
Expand Down

0 comments on commit 75950c6

Please sign in to comment.