43 const std::string & file)
47 std::string args =
"-t300000 --writable ";
59 std::string args =
"-t";
61 args +=
" --writable ";
70 std::string args =
"-t";
81 std::string args =
"-t";
91 std::string args =
"-t300000 ";
99 std::string args =
"-t300000 --writable ";
Xapian::WritableDatabase get_generated_database(const std::string &name)
Get generated database.
unsigned timeout
A timeout value in milliseconds.
std::string get_database_path(const std::vector< std::string > &files)
Get the path of a database instance, if such a thing exists.
Convert types to std::string.
std::string get_writable_database_args(const std::string &name, const std::string &file)
Get the args for opening a remote database indexing a single file.
virtual std::string get_writable_database_path(const std::string &name)
Get the path of a writable database instance, if such a thing exists.
virtual Xapian::WritableDatabase get_writable_database(const std::string &name, const std::string &file)
Get a writable database instance.
std::string get_writable_database_again_args()
Get the args for opening the last opened WritableDatabase again.
BackendManager subclass for remote databases.
std::string get_writable_database_as_database_args()
Get the args for opening the last opened WritableDatabase.
This class provides read/write access to a database.
string str(int value)
Convert int to std::string.
virtual std::string get_writable_database_path_again()
Get the path of the last opened WritableDatabase.
BackendManager subclass for glass databases.
BackendManager * sub_manager
std::string get_generated_database_path(const std::string &name)
Get generated database path from sub_manager.
std::string get_remote_database_args(const std::vector< std::string > &files, unsigned int timeout)
Get the args for opening a remote database with the specified timeout.