21 #ifndef XAPIAN_INCLUDED_DBFACTORY_H
22 #define XAPIAN_INCLUDED_DBFACTORY_H
24 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD
25 # error Never use <xapian/dbfactory.h> directly; include <xapian.h> instead.
29 #include <string_view>
40 #ifdef XAPIAN_HAS_REMOTE_BACKEND
66 unsigned timeout = 10000,
67 unsigned connect_timeout = 10000);
92 unsigned connect_timeout = 10000,
111 std::string_view args,
112 unsigned timeout = 10000);
130 std::string_view args,
131 unsigned timeout = 0,
An indexed database of documents.
This class provides read/write access to a database.
Constants in the Xapian namespace.
An indexed database of documents.
Define XAPIAN_DEPRECATED() and related macros.
WritableDatabase open_writable(std::string_view host, unsigned int port, unsigned timeout=0, unsigned connect_timeout=10000, int flags=0)
Construct a WritableDatabase object for update access to a remote database accessed via a TCP connect...
Database open(std::string_view host, unsigned int port, unsigned timeout=10000, unsigned connect_timeout=10000)
Construct a Database object for read-only access to a remote database accessed via a TCP connection.
The Xapian namespace contains public interfaces for the Xapian library.
Define preprocessor symbols for the library version.
Define XAPIAN_VISIBILITY_* macros.
#define XAPIAN_VISIBILITY_DEFAULT