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

Function execAndThrowOnError

src/utilities/sql/PreparedStatement.hpp:105–112  ·  view source on GitHub ↗

Executes a **SINGLE** statement

Source from the content-addressed store, hash-verified

103
104 // Executes a **SINGLE** statement
105 void execAndThrowOnError() {
106 int code = execute();
107 // copied in here to avoid including sqlite3 header everywhere
108 constexpr auto SQLITE_DONE = 101;
109 if (code != SQLITE_DONE) {
110 throw std::runtime_error("Error executing SQL statement step");
111 }
112 }
113
114 // Executes a **SINGLE** statement
115 int execute();

Callers

nothing calls this directly

Calls 1

executeFunction · 0.70

Tested by

no test coverage detected