29 # include <valgrind/memcheck.h> 46 string args = get_writable_database_args(name, file);
49 if (RUNNING_ON_VALGRIND) {
61 if (RUNNING_ON_VALGRIND) {
73 string args = get_remote_database_args(files, timeout);
76 if (RUNNING_ON_VALGRIND) {
87 string args = get_remote_database_args(path, 300000);
90 if (RUNNING_ON_VALGRIND) {
101 string args = get_writable_database_as_database_args();
104 if (RUNNING_ON_VALGRIND) {
115 string args = get_writable_database_again_args();
118 if (RUNNING_ON_VALGRIND) {
Xapian::Database get_database_by_path(const std::string &path)
Get RemoteProg Xapian::Database instance of database at path.
This class is used to access a database, or a group of databases.
unsigned timeout
A timeout value in milliseconds.
Xapian::WritableDatabase get_writable_database(const std::string &name, const std::string &file)
Create a RemoteProg Xapian::WritableDatabase object indexing a single file.
Xapian::Database get_remote_database(const std::vector< std::string > &files, unsigned int timeout)
Create a RemoteProg Xapian::Database with the specified timeout.
BackendManager subclass for remoteprog databases.
This class provides read/write access to a database.
Database open(const std::string &host, unsigned int port, useconds_t timeout=10000, useconds_t connect_timeout=10000)
Construct a Database object for read-only access to a remote database accessed via a TCP connection...
Xapian::WritableDatabase get_writable_database_again()
Create a WritableDatabase object for the last opened WritableDatabase.
Public interfaces for the Xapian library.
Xapian::WritableDatabase get_remote_writable_database(std::string args)
Create a RemoteProg Xapian::WritableDatabase object with specified args.
Xapian::Database do_get_database(const std::vector< std::string > &files)
Create a Xapian::Database object indexing multiple files.
WritableDatabase open_writable(const std::string &host, unsigned int port, useconds_t timeout=0, useconds_t connect_timeout=10000, int flags=0)
Construct a WritableDatabase object for update access to a remote database accessed via a TCP connect...
Xapian::Database get_writable_database_as_database()
Create a Database object for the last opened WritableDatabase.