MCPcopy Create free account
hub / github.com/SqliteModernCpp/sqlite_modern_cpp / execute

Method execute

hdr/sqlite_modern_cpp.h:83–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 void execute() {
84 int hresult;
85 used(true); /* prevent from executing again when goes out of scope */
86
87 while((hresult = sqlite3_step(_stmt.get())) == SQLITE_ROW) {}
88
89 if(hresult != SQLITE_DONE) {
90 errors::throw_sqlite_error(hresult, sql());
91 }
92
93 }
94
95 std::string sql() {
96#if SQLITE_VERSION_NUMBER >= 3014000

Callers 2

operator++Function · 0.80
mainFunction · 0.80

Calls 1

throw_sqlite_errorFunction · 0.85

Tested by

no test coverage detected