| 95 | } |
| 96 | |
| 97 | DB_ROW db_fetch_row(DB_QUERY_RESULT* result) |
| 98 | { |
| 99 | auto* theResult{ reinterpret_cast<QueryResult*>(result) }; |
| 100 | if (!theResult || theResult->index >= theResult->data.size()) |
| 101 | { |
| 102 | return nullptr; |
| 103 | } |
| 104 | else |
| 105 | { |
| 106 | return theResult->data[theResult->index++].data(); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | void db_free_result(DB_QUERY_RESULT* result) |
| 111 | { |