| 185 | } |
| 186 | |
| 187 | void DbConnection::exec_command(const char* cmd) { |
| 188 | ikos_assert_msg(cmd != nullptr, "cmd is null"); |
| 189 | |
| 190 | int status = sqlite3_exec(this->_handle, cmd, nullptr, nullptr, nullptr); |
| 191 | if (status != SQLITE_OK) { |
| 192 | throw DbError(status, "DbConnection::exec_command(): " + std::string(cmd)); |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | void DbConnection::exec_command(const std::string& cmd) { |
| 197 | this->exec_command(cmd.c_str()); |
no test coverage detected