diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/database.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/database.rs b/src/database.rs index 3feca76..b3812eb 100644 --- a/src/database.rs +++ b/src/database.rs @@ -111,6 +111,12 @@ impl Database { ffi::notmuch_database_get_version(self.0) }) } + + pub fn needs_upgrade(&self) -> bool { + unsafe { + ffi::notmuch_database_needs_upgrade(self.0) == 1 + } + } } impl ops::Drop for Database { |
