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

Function execAndReturnFirstInt

src/utilities/sql/SqlFile_Impl.hpp:1190–1196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1188 // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string
1189 template <typename... Args>
1190 boost::optional<int> execAndReturnFirstInt(const std::string& statement, Args&&... args) const {
1191 if (m_db) {
1192 PreparedStatement stmt(statement, m_db, false, args...);
1193 return stmt.execAndReturnFirstInt();
1194 }
1195 return boost::none;
1196 }
1197
1198 // execute a statement and return the first (if any) value as a string
1199 // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string

Callers

nothing calls this directly

Calls 1

execAndReturnFirstIntMethod · 0.80

Tested by

no test coverage detected