Commit beb7efee authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

sqlite: Add a hasRemainingColumns helper

parent f3bed38d
......@@ -123,6 +123,18 @@ public:
return m_stmt != nullptr;
* @brief hasRemainingColumns Returns true if there are more column to extract
* This is meant to be used after a serie of calls to extract().
* When load() is used, the internal index isn't updated and this function
* would always return true if there is at least one column.
bool hasRemainingColumns() const
return m_idx < m_nbColumns;
sqlite3_stmt* m_stmt;
unsigned int m_idx;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment