diff options
Diffstat (limited to 'worker/notmuch/lib')
-rw-r--r-- | worker/notmuch/lib/database.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/worker/notmuch/lib/database.go b/worker/notmuch/lib/database.go index 79bf5be3..a965bb62 100644 --- a/worker/notmuch/lib/database.go +++ b/worker/notmuch/lib/database.go @@ -62,6 +62,11 @@ func (db *DB) connect(writable bool) error { return nil } +// Returns the DB path +func (db *DB) Path() string { + return db.db.Path() +} + // withConnection calls callback on the DB object, cleaning up upon return. // the error returned is from the connection attempt, if not successful, // or from the callback otherwise. |