# frozen_string_literal: true module Osugiru class Database attr_reader :db def initialize(path:) @db = ::Notmuch::Database.new(path) end def query(query) db.query(query) end def search_messages(query) query(query).search_messages end end end