Executes a **SINGLE** statement
| 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(); |