notmuch/lib
Carl Worth 909f52bd8c lib: Implement versioning in the database and provide upgrade function.
The recent support for renames in the database is our first time
(since notmuch has had more than a single user) that we have a
database format change. To support smooth upgrades we now encode a
database format version number in the Xapian metadata.

Going forward notmuch will emit a warning if used to read from a
database with a newer version than it natively supports, and will
refuse to write to a database with a newer version.

The library also provides functions to query the database format
version:

	notmuch_database_get_version

to ask if notmuch wants a newer version than that:

	notmuch_database_needs_upgrade

and a function to actually perform that upgrade:

	notmuch_database_upgrade
2010-01-07 18:26:31 -08:00
..
database-private.h lib: Implement versioning in the database and provide upgrade function. 2010-01-07 18:26:31 -08:00
database.cc lib: Implement versioning in the database and provide upgrade function. 2010-01-07 18:26:31 -08:00
directory.cc lib: Consolidate checks for read-only database. 2010-01-07 10:19:44 -08:00
index.cc Index content from citations and signatures. 2010-01-06 10:32:06 -08:00
libsha1.c libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
libsha1.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
Makefile Makefiles: Use .DEFAULT to support arbitrary targets from sub directories. 2010-01-06 10:32:06 -08:00
Makefile.local lib: Implement new notmuch_directory_t API. 2010-01-06 10:32:06 -08:00
message-file.c message_file_get_header: Use break where more clear than continue. 2009-11-17 18:37:45 -08:00
message.cc lib: Implement versioning in the database and provide upgrade function. 2010-01-07 18:26:31 -08:00
messages.c lib: New function to collect tags from a list of messages. 2009-11-26 07:06:04 -08:00
notmuch-private.h lib: Implement versioning in the database and provide upgrade function. 2010-01-07 18:26:31 -08:00
notmuch.h lib: Implement versioning in the database and provide upgrade function. 2010-01-07 18:26:31 -08:00
query.cc Silence compiler warning by initializing a variable. 2009-11-27 18:38:06 -08:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
tags.c notmuch_tags_advance: Make safe against excessive calls. 2009-11-14 23:02:55 -08:00
thread.cc correct message flag enum value so that it matches the type 2009-11-27 20:50:59 -08:00
xutil.c xutil: Implement xstrndup without relying on strndup. 2009-12-01 12:51:39 -08:00
xutil.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00