| 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 |
no test coverage detected