diff options
| author | David Bremner <david@tethera.net> | 2021-08-24 08:17:31 -0700 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-09-04 17:07:19 -0700 |
| commit | b3bbaf1bc27d79b8191d296998f695be5be3146a (patch) | |
| tree | cde85237e6caf471f10b594bbb85d7112fe5b6ed /lib/database-private.h | |
| parent | c62f3f77a7eeda57cff8c5c66e86d39ae3c38aad (diff) | |
lib/query: factor out _notmuch_query_string_to_xapian_query
When dealing with recursive queries (i.e. thread:{foo}) it turns out
to be useful just to deal with the underlying Xapian objects, and not
wrap them in notmuch objects.
Diffstat (limited to 'lib/database-private.h')
| -rw-r--r-- | lib/database-private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h index cf4eb94b..7ee8e62d 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -302,11 +302,18 @@ notmuch_status_t _notmuch_database_setup_user_query_fields (notmuch_database_t *notmuch); #if __cplusplus +/* query.cc */ +notmuch_status_t +_notmuch_query_string_to_xapian_query (notmuch_database_t *notmuch, + std::string query_string, + Xapian::Query &output, + std::string &msg); /* parse-sexp.cc */ notmuch_status_t _notmuch_sexp_string_to_xapian_query (notmuch_database_t *notmuch, const char *querystr, Xapian::Query &output); +/* regexp-fields.cc */ notmuch_status_t _notmuch_regexp_to_query (notmuch_database_t *notmuch, Xapian::valueno slot, std::string field, std::string regexp_str, |
