29 # include <valgrind/memcheck.h> 37 return "remoteprog_" + sub_manager->get_dbtype();
52 string args = get_writable_database_args(name, file);
55 if (RUNNING_ON_VALGRIND) {
67 if (RUNNING_ON_VALGRIND) {
79 string args = get_remote_database_args(files, timeout);
82 if (RUNNING_ON_VALGRIND) {
93 string args = get_remote_database_args(path, 300000);
96 if (RUNNING_ON_VALGRIND) {
107 string args = get_writable_database_as_database_args();
110 if (RUNNING_ON_VALGRIND) {
121 string args = get_writable_database_again_args();
124 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...
std::string get_dbtype() const
Return a string representing the current database type.
Xapian::Database get_writable_database_as_database()
Create a Database object for the last opened WritableDatabase.