On Tue, 22 Dec 2009 22:48:25 +0000 (UTC), Olly Betts <o...@survex.com> wrote:
> This is just the sort of thing which Xapian's "user metadata" is there
> for.  It's essentially a key/value store which is versioned along with
> the rest of the Xapian database.  So to set it:
>   database.set_metadata("version", "1");
> And to read (and default if not set):
>   string version = database.get_metadata("version");
>   if (version.empty()) version = "0";

Thanks, Olly!

That is exactly what we'll want here, and is much better than a magic

-Carl (grateful to have a Xapian expert keeping watch on the list)

Attachment: pgpXLbC5HmGJ2.pgp
Description: PGP signature

notmuch mailing list

Reply via email to