65 Readonly_Client(file, connection, content_check, recovery),
88 default_open_mode(default_open_mode),
89 default_db_type(default_db_type),
98 const bool hard_checkpoint = arguments.has_flag(
"hard_checkpoint");
100 static std::vector<const char *> check_string
109 arguments.get_enum_option
117 static std::vector<const char *> recovery_string
126 arguments.get_enum_option
134 static std::vector<const char *> db_string
142#ifdef PERSISTENCE_TEST
149 arguments.get_enum_option
157 arguments.add_parameter(
"<file>");
158 arguments.add_parameter(
"<connection>");
160 if (arguments.get_remaining_count() == 0)
163 logger.log(
"hard_checkpoint = " + std::to_string(hard_checkpoint));
164 logger.log(
"content_check = " + std::string(check_string[
int(content_check)]));
165 logger.log(
"recovery = " + std::string(recovery_string[
int(recovery)]));
166 logger.log(
"db_type = " + std::string(db_string[
int(db_type)]));
168 Abstract_File *client_file = file_parser.parse(logger, arguments);
169 Connection *connection = connection_parser.build(logger, arguments, client_file);
175 throw Exception(
"could not create file");
178 throw Exception(
"could not create connection");
180 logger.log(
"creating client");
188 new Readonly_Client(*client_file, *connection, content_check, recovery)
257#ifdef PERSISTENCE_TEST
258 else if (db_type == DB_Type::joedb)
260 client.reset(
new Joedb_Client