MCPcopy Create free account
hub / github.com/audacity/audacity / RunResult

Method RunResult

libraries/lib-sqlite-helpers/sqlite/Statement.cpp:203–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203RunResult::RunResult(StatementHandlePtr stmt, std::vector<Error> errors) noexcept
204 : mStatement { std::move(stmt) }
205 , mErrors { std::move(errors) }
206{
207 // mStatement can't be nullptr here, by construction
208 assert(mStatement != nullptr);
209
210 const auto rc = sqlite3_step(*mStatement);
211
212 mHasRows = rc == SQLITE_ROW;
213
214 if (rc == SQLITE_DONE)
215 mModifiedRowsCount = sqlite3_changes(sqlite3_db_handle(*mStatement));
216
217 if (rc != SQLITE_DONE && !mHasRows)
218 mErrors.emplace_back(Error(rc));
219}
220
221RunResult::RunResult(RunResult&& rhs) noexcept
222{

Callers

nothing calls this directly

Calls 2

moveFunction · 0.85
ErrorFunction · 0.70

Tested by

no test coverage detected