refactor
Some checks failed
BlockStorage/repertory/pipeline/head There was a failure building this commit

This commit is contained in:
Scott E. Graves 2024-10-22 15:08:50 -05:00
parent 9d0baf30b8
commit c960df8f70
2 changed files with 3 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public:
[[nodiscard]] auto get_row(std::optional<row> &opt_row) const -> bool; [[nodiscard]] auto get_row(std::optional<row> &opt_row) const -> bool;
[[nodiscard]] auto has_row() const -> bool { return res_ == SQLITE_ROW; } [[nodiscard]] auto has_row() const -> bool;
void next_row() const; void next_row() const;

View File

@ -105,6 +105,8 @@ auto db_result::get_row(std::optional<row> &opt_row) const -> bool {
return true; return true;
} }
auto db_result::has_row() const -> bool { return res_ == SQLITE_ROW; }
void db_result::next_row() const { void db_result::next_row() const {
if (not has_row()) { if (not has_row()) {
return; return;