| 1306 | // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string |
| 1307 | template <typename... Args> |
| 1308 | void execAndThrowOnError(const std::string& bindingStatement, Args&&... args) { |
| 1309 | if (!m_connectionOpen) { |
| 1310 | throw std::runtime_error("Error executing SQL statement as database connection is not open."); |
| 1311 | } |
| 1312 | PreparedStatement stmt(bindingStatement, m_db, false, args...); |
| 1313 | stmt.execAndThrowOnError(); |
| 1314 | } |
| 1315 | |
| 1316 | void addSimulation(const openstudio::EpwFile& t_epwFile, const openstudio::DateTime& t_simulationTime, const openstudio::Calendar& t_calendar); |
| 1317 | int getNextIndex(const std::string& t_tableName, const std::string& t_columnName); |
no test coverage detected