]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Msgmap.pm
Msgmap: pass ReadOnly DBI flag for non-writable opens
[public-inbox.git] / lib / PublicInbox / Msgmap.pm
index 8a34e7e0c713a4036cd156de22795a525320e5d7..6e9f27433c2eacf495a17b9150099800a40f3914 100644 (file)
@@ -19,6 +19,7 @@ sub new {
                AutoCommit => 1,
                RaiseError => 1,
                PrintError => 0,
+               ReadOnly => !$writable,
                sqlite_use_immediate_transaction => 1,
        });
        $dbh->do('PRAGMA case_sensitive_like = ON');