MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / execute

Function execute

src/utilities/sql/SqlFile_Impl.hpp:1245–1254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1243 // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string
1244 template <typename... Args>
1245 int execute(const std::string& statement, Args&&... args) const {
1246 // copied in here to avoid including sqlite3 header everywhere
1247 constexpr auto SQLITE_ERROR = 1;
1248 auto code = SQLITE_ERROR;
1249 if (m_db) {
1250 PreparedStatement stmt(statement, m_db, false, args...);
1251 code = stmt.execute();
1252 }
1253 return code;
1254 }
1255
1256 /// Returns the summary data for each install location and fuel type found in report variables
1257 std::vector<openstudio::SummaryData> getSummaryData() const;

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected