We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f155c04 + 401b2ce commit 602733dCopy full SHA for 602733d
src/database/src/database.rs
@@ -76,7 +76,7 @@ impl Database {
76
pub fn open_connection(&mut self, path: String) -> Result<(), Box<dyn Error>> {
77
// We have to open with flags because the SQLITE_OPEN_CREATE flag with the default open causes the file to
78
// be overwritten
79
- let flags = OpenFlags::SQLITE_OPEN_READ_WRITE | OpenFlags::SQLITE_OPEN_URI | OpenFlags::SQLITE_OPEN_NO_MUTEX;
+ let flags = OpenFlags::SQLITE_OPEN_READ_ONLY | OpenFlags::SQLITE_OPEN_URI | OpenFlags::SQLITE_OPEN_NO_MUTEX;
80
let conn = Connection::open_with_flags(path, flags)?;
81
self.database = Some(conn);
82
0 commit comments