aboutsummaryrefslogtreecommitdiff
path: root/lib/osugiru/database.rb
diff options
context:
space:
mode:
authormms <git@sapka.me>2024-11-12 23:23:01 +0100
committermms <git@sapka.me>2024-11-12 23:23:01 +0100
commitc65e4885b999e90732bf37ee954540bae58a4880 (patch)
treea9e22b04c7306dc4f292ae22469c3f136ac9611f /lib/osugiru/database.rb
parent53112538e1f47ed446848c5787a87350a2cc6e31 (diff)
feat: rename, again
Diffstat (limited to 'lib/osugiru/database.rb')
-rw-r--r--lib/osugiru/database.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/osugiru/database.rb b/lib/osugiru/database.rb
deleted file mode 100644
index 0d33a24..0000000
--- a/lib/osugiru/database.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# frozen_string_literal: true
-
-module Osugiru
- class Database
- attr_reader :db
-
- def initialize(path:)
- @db = ::Notmuch::Database.new(path, mode: Notmuch::MODE_READ_WRITE)
- end
-
- def query(query)
- db.query(query)
- end
-
- def search_messages(query)
- query(query).search_messages
- end
- end
-end