| 314 | } |
| 315 | |
| 316 | void SqlFile_Impl::execAndThrowOnError(const std::string& t_stmt) { |
| 317 | char* err = nullptr; |
| 318 | if (sqlite3_exec(m_db, t_stmt.c_str(), nullptr, nullptr, &err) != SQLITE_OK) { |
| 319 | std::string errstr; |
| 320 | |
| 321 | if (err) { |
| 322 | errstr = err; |
| 323 | sqlite3_free(err); |
| 324 | } |
| 325 | |
| 326 | throw std::runtime_error("Error executing SQL statement: " + t_stmt + " " + errstr); |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | void SqlFile_Impl::addSimulation(const openstudio::EpwFile& t_epwFile, const openstudio::DateTime& t_simulationTime, |
| 331 | const openstudio::Calendar& t_calendar) { |
no outgoing calls
no test coverage detected