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 document. -Carl (grateful to have a Xapian expert keeping watch on the list)
pgpXLbC5HmGJ2.pgp
Description: PGP signature
_______________________________________________ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch