Function notmuch_sys::notmuch_database_needs_upgrade
[−]
[src]
pub unsafe extern "C" fn notmuch_database_needs_upgrade(
database: *mut notmuch_database_t
) -> notmuch_bool_t
Can the database be upgraded to a newer database version?
If this function returns TRUE, then the caller may call
notmuch_database_upgrade
to upgrade the database. If the caller
does not upgrade an out-of-date database, then some functions may
fail with notmuch_status_t::UPGRADE_REQUIRED
. This always returns
FALSE for a read-only database because there's no way to upgrade a
read-only database.