18 #ifndef FCSTDATABASE_H_
19 #define FCSTDATABASE_H_
29 namespace FcstUtilities
89 bool has_data(
const std::string& model_name,
const DatabaseOC& OC,
const double& tolerance);
101 std::vector<std::vector<double>>
get_data(
const std::string& model_name,
const DatabaseOC& OC);
114 std::vector<std::vector<double>>
get_data(
const std::string& model_name,
const DatabaseOC& OC,
const double& tolerance);
126 std::vector<std::vector<double>>
get_data(
const std::string& model_name,
const DatabaseOC& OC,
const double& tolerance,
const std::string& orderby);
139 bool commit_data(
const std::string& model_name,
const DatabaseOC& OC,
const std::vector<std::string>& column_names,
const std::vector<std::vector<double>>& data);
150 std::vector<std::vector<std::string>>
request(
const std::string& sqlCmd);
178 std::vector<std::vector<std::string>>
temp;
187 std::vector<std::string> line_temp;
188 std::string str_temp;
189 for(
int i=0; i<
argc; i++){
190 str_temp = argv[i] ? argv[i] :
"NULL";
191 line_temp.push_back(std::string(str_temp));
194 db->
temp.push_back(line_temp);
208 bool create_table(
const std::string& table_name,
const std::vector<std::string>& column_names);
214 bool fill_empty_table(
const std::string& table_name,
const std::vector<std::vector<double>>& data,
const std::vector<std::string>& column_names);
222 std::string
find_table(
const std::string& model_name,
const DatabaseOC& OC,
const double& tolerance);
225 bool find_matching_head_term(
const std::vector<std::string>& OC,
const std::vector<std::string>& head_line,
const double& tolerance);
241 bool request(
const std::string& sqlCmd,
const bool& useCallBack,
int lockCounter =3);
267 bool add_param(
const std::string& name,
const double& value);
272 bool add_param(
const std::string&,
const std::string& );