]> git.notmuchmail.org Git - notmuch/commit
database: Add new find_doc_ids_for_term interface.
authorCarl Worth <cworth@cworth.org>
Mon, 21 Dec 2009 23:12:52 +0000 (15:12 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:06 +0000 (10:32 -0800)
commit44a74912c78526c1942a101a8172206a32885425
treeae3c16355cedc0a9b36a2e220a06ac0adddad63f
parentd7e5f5827e21be7dd8993e5a877bdb73cdb64325
database: Add new find_doc_ids_for_term interface.

The existing find_doc_ids function is convenient when the caller
doesn't want to be bothered constructing a term. But when the caller
*does* have the term already, that interface is just wasteful. So we
export a lower-level interface that maps a pre-constructed term to a
document-ID iterators.
lib/database.cc