| 147 | SqliteStatement::~SqliteStatement() { sqlite3_finalize(stmt_); } |
| 148 | |
| 149 | arrow::Result<int> SqliteStatement::Step() { |
| 150 | int rc = sqlite3_step(stmt_); |
| 151 | if (rc == SQLITE_ERROR) { |
| 152 | return Status::ExecutionError("A SQLite runtime error has occurred: ", |
| 153 | sqlite3_errmsg(db_)); |
| 154 | } |
| 155 | |
| 156 | return rc; |
| 157 | } |
| 158 | |
| 159 | arrow::Result<int> SqliteStatement::Reset() { |
| 160 | int rc = sqlite3_reset(stmt_); |
no test coverage detected