fixed tsqlite_statement bugs

This commit is contained in:
2025-12-15 13:34:29 +05:00
parent 3d18027489
commit 52a19d8db8
3 changed files with 86 additions and 33 deletions

View File

@@ -53,8 +53,19 @@ Result(tsqlite_statement*) tsqlite_statement_compile(tsqlite_connection* conn, s
void tsqlite_statement_free(tsqlite_statement* st);
/// @brief execute statement or move to next result row. Documentation: https://sqlite.org/c3ref/step.html
/// @return is next result row avaliable
/// @brief execute statement or move to next result row.
/// Documentation: https://sqlite.org/c3ref/step.html
///
/// USAGE:
/// ```
/// while(true){
/// try(bool has_result, i, tsqlite_statement_execNext(st));
/// if(!has_result)
/// break;
/// /* get result columns */
/// }
/// ```
/// @return is result row avaliable
Result(bool) tsqlite_statement_execNext(tsqlite_statement* self);
/// call this after executing a compiled statement to use it again