Function notmuch_sys::notmuch_database_get_revision
[−]
[src]
pub unsafe extern "C" fn notmuch_database_get_revision(
notmuch: *mut notmuch_database_t,
uuid: *mut *const c_char
) -> c_ulong
Return the committed database revision and UUID.
The database revision number increases monotonically with each commit to the database. Hence, all messages and message changes committed to the database (that is, visible to readers) have a last modification revision <= the committed database revision. Any messages committed in the future will be assigned a modification revision > the committed database revision.
The UUID is a NUL-terminated opaque string that uniquely identifies this database. Two revision numbers are only comparable if they have the same database UUID.