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.
1 parent 801add3 commit 401b2ceCopy full SHA for 401b2ce
src/database/src/database.rs
@@ -58,7 +58,7 @@ impl Database {
58
59
// We have to open with flags because the SQLITE_OPEN_CREATE flag with the default open causes the file to
60
// be overwritten
61
- 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;
62
let conn = Connection::open_with_flags(path, flags)?;
63
self.database = Some(conn);
64
0 commit comments