| 70 | } |
| 71 | |
| 72 | bool sqlite::Stmt::step() const { |
| 73 | auto rc = sqlite3_step(handle); |
| 74 | if (rc == SQLITE_DONE) |
| 75 | return false; |
| 76 | if (rc != SQLITE_ROW) |
| 77 | throw platform::sqlite::Error("Cursor step failed sqlite3_step in step_and_check " + common::to_string(rc)); |
| 78 | return true; |
| 79 | } |
| 80 | |
| 81 | size_t sqlite::Stmt::column_bytes(int column) const { |
| 82 | return static_cast<size_t>(sqlite3_column_bytes(handle, column)); |
no test coverage detected