aboutsummaryrefslogtreecommitdiff
path: root/lib/osugiru/database.rb
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-11-12 22:50:10 +0100
committermms <git@sapka.me>2024-11-12 23:12:55 +0100
commit22560fbfbe2214f260c71c0ae5c928f81a431b76 (patch)
tree0b47e7c63f715fab3a347bf08d5f50ea9e8a9561 /lib/osugiru/database.rb
parent955739e2a7be70e6abf7e95710ffe0f4a9c64481 (diff)
feat: README
Diffstat (limited to 'lib/osugiru/database.rb')
-rw-r--r--lib/osugiru/database.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/osugiru/database.rb b/lib/osugiru/database.rb
index d014c94..0d33a24 100644
--- a/lib/osugiru/database.rb
+++ b/lib/osugiru/database.rb
@@ -5,7 +5,7 @@ module Osugiru
attr_reader :db
def initialize(path:)
- @db = ::Notmuch::Database.new(path)
+ @db = ::Notmuch::Database.new(path, mode: Notmuch::MODE_READ_WRITE)
end
def query(query)