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

Function execAndReturnFirstString

src/utilities/sql/SqlFile_Impl.hpp:1201–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199 // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string
1200 template <typename... Args>
1201 boost::optional<std::string> execAndReturnFirstString(const std::string& statement, Args&&... args) const {
1202 if (m_db) {
1203 PreparedStatement stmt(statement, m_db, false, args...);
1204 return stmt.execAndReturnFirstString();
1205 }
1206 return boost::none;
1207 }
1208
1209 /// execute a statement and return the results (if any) in a vector of double
1210 // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected