29 # include <valgrind/memcheck.h>
47 string args = get_writable_database_args(
name, file);
50 if (RUNNING_ON_VALGRIND) {
62 if (RUNNING_ON_VALGRIND) {
75 string args = get_remote_database_args(files, timeout);
78 if (port_ptr) *port_ptr = 0;
81 if (RUNNING_ON_VALGRIND) {
92 string args = get_remote_database_args(path, 300000);
95 if (RUNNING_ON_VALGRIND) {
106 string args = get_writable_database_as_database_args();
109 if (RUNNING_ON_VALGRIND) {
120 string args = get_writable_database_again_args();
123 if (RUNNING_ON_VALGRIND) {
BackendManager subclass for remoteprog databases.
Xapian::WritableDatabase get_writable_database_again()
Create a WritableDatabase object for the last opened WritableDatabase.
Xapian::WritableDatabase get_remote_writable_database(std::string args)
Create a RemoteProg Xapian::WritableDatabase object with specified args.
Xapian::Database get_writable_database_as_database()
Create a Database object for the last opened WritableDatabase.
Xapian::Database get_remote_database(const std::vector< std::string > &files, unsigned int timeout, int *port_ptr)
Create a RemoteProg Xapian::Database with the specified timeout.
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_database_by_path(const std::string &path)
Get RemoteProg Xapian::Database instance of database at path.
Xapian::Database do_get_database(const std::vector< std::string > &files)
Create a Xapian::Database object indexing multiple files.
An indexed database of documents.
This class provides read/write access to a database.
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.
Public interfaces for the Xapian library.