* update database up-to-date and/or empty checks

This commit is contained in:
Dirk-Jan C. Binnema
2010-01-31 12:14:25 +02:00
parent 143f8c007d
commit 12dc28e3e9
3 changed files with 43 additions and 9 deletions

View File

@ -38,6 +38,16 @@ G_BEGIN_DECLS
gchar* mu_util_xapian_db_version (const gchar *xpath) G_GNUC_WARN_UNUSED_RESULT;
/**
* check whether the database is empty (contains 0 documents); in
* addition, a non-existing database is considered 'empty' too
*
* @param xpath path to the xapian database
*
* @return TRUE if the database is empty, FALSE otherwise
*/
gboolean mu_util_xapian_db_is_empty (const gchar *xpath);
/**
* check if the 'schema' of the current database is up-to-date
*